diff libinterp/corefcn/cellfun.cc @ 26164:7f6a50f73625

Silence compiler warnings about format identifier for octave_idx_type (bug #55046). * build-aux/mk-octave-config-h.sh, oct-conf-post.in.h: Rename macro to OCTAVE_FORMAT_PRINTF. Add version for compiling with MinGW. Define OCTAVE_IDX_TYPE_FORMAT. * error.h: Use renamed macro. * __eigs__.cc, convhulln.cc, qr.cc, pt-eval.cc, __magick_read__.cc, cellfunn.cc, data.cc, errwarn.cc, graphics.cc, ls-mat-ascii.cc, ls-oct-text.cc, oct-stream.cc: Use preprocessor macro for format identifier for octave_idx_type.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 30 Nov 2018 20:07:20 +0100
parents 97ea2329d5d8
children 0020995f2977
line wrap: on
line diff
--- a/libinterp/corefcn/cellfun.cc	Mon Dec 03 19:32:31 2018 +0100
+++ b/libinterp/corefcn/cellfun.cc	Fri Nov 30 20:07:20 2018 +0100
@@ -1878,7 +1878,8 @@
       octave_idx_type r = (i < dv.ndims () ? dv(i) : 1);
 
       if (s != r)
-        error ("mat2cell: mismatch on dimension %d (%d != %d)", i+1, r, s);
+        error ("mat2cell: mismatch on dimension %d (%" OCTAVE_IDX_TYPE_FORMAT
+               " != %" OCTAVE_IDX_TYPE_FORMAT ")", i+1, r, s);
     }
 
   return false;