# HG changeset patch # User Rik # Date 1473513603 25200 # Node ID cc4f31e8477fda24d34f07cc500f523cf1080e2c # Parent b0caa61934fe63706442964db7952fe6d4aa4734 Accept, but ignore, mex argument -largeArrayDims, -compatibleArrayDims (bug #39984). * mex.m: Use printf, rather than disp, to avoid an extra newline on output. * mkoctfile.in.cc: Add elseif clause to detect -largeArrayDims, -compatibleArrayDims and issue a warning. diff -r b0caa61934fe -r cc4f31e8477f scripts/miscellaneous/mex.m --- a/scripts/miscellaneous/mex.m Fri Sep 09 20:00:17 2016 -0700 +++ b/scripts/miscellaneous/mex.m Sat Sep 10 06:20:03 2016 -0700 @@ -29,7 +29,7 @@ [output, status] = mkoctfile ("--mex", varargin{:}); if (! isempty (output)) - disp (output); + printf ("%s", output); endif if (nargout > 0) retval = status; diff -r b0caa61934fe -r cc4f31e8477f src/mkoctfile.in.cc --- a/src/mkoctfile.in.cc Fri Sep 09 20:00:17 2016 -0700 +++ b/src/mkoctfile.in.cc Sat Sep 10 06:20:03 2016 -0700 @@ -498,6 +498,10 @@ { defs += (" " + arg); } + else if (arg == "-largeArrayDims" || arg == "-compatibleArrayDims") + { + std::cout << "warning: -largeArrayDims and -compatibleArrayDims are accepted for compatibility, but ignored" << std::endl; + } else if (starts_with (arg, "-Wl,") || starts_with (arg, "-l") || starts_with (arg, "-L") || starts_with (arg, "-R")) {