Mercurial > octave
diff libinterp/corefcn/ls-oct-text.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 | 4d565baa475e |
children | 2d9ae06f621b |
line wrap: on
line diff
--- a/libinterp/corefcn/ls-oct-text.cc Mon Dec 03 19:32:31 2018 +0100 +++ b/libinterp/corefcn/ls-oct-text.cc Fri Nov 30 20:07:20 2018 +0100 @@ -375,7 +375,7 @@ { octave_idx_type extras = nc % 3; if (extras) - warning ("ignoring last %d columns", extras); + warning ("ignoring last %" OCTAVE_IDX_TYPE_FORMAT " columns", extras); Matrix tmp = tc.matrix_value (); nr = tmp.rows ();