octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warnings in Octave compilation from mercurial repository


From: José Luis García Pallero
Subject: Warnings in Octave compilation from mercurial repository
Date: Sat, 5 Feb 2011 20:39:17 +0100

Hello,
I've compiled the code from the mercurial repo and some warnings was
emitted. I can see in the mercurial commits that sometimes changes was
made in order to supress warnings in compilation. My system is Debian
GNU/Linux unstable and the compilers are gcc/g++/gfortran 4.4.5 from
Debian repos:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -O2 -pthread -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow
-Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread -pthread -O2
-pthread -MT misc/libcruft_la-f77-fcn.lo -MD -MP -MF
misc/.deps/libcruft_la-f77-fcn.Tpo -c misc/f77-fcn.c  -fPIC -DPIC -o
misc/.libs/libcruft_la-f77-fcn.o
misc/f77-fcn.c: In function 'xstopx_':
misc/f77-fcn.c:63: warning: function declared 'noreturn' has a
'return' statement

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -O2 -pthread -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow
-Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread -pthread -O2
-pthread -MT misc/libcruft_la-lo-error.lo -MD -MP -MF
misc/.deps/libcruft_la-lo-error.Tpo -c misc/lo-error.c  -fPIC -DPIC -o
misc/.libs/libcruft_la-lo-error.o
misc/lo-error.c: In function 'liboctave_fatal_with_id':
misc/lo-error.c:111: warning: unused parameter 'id'
misc/lo-error.c: In function 'liboctave_warning_with_id':
misc/lo-error.c:131: warning: unused parameter 'id'

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -O2 -DHAVE_CONFIG_H -mieee-fp
-I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread
-O2 -MT liboctave_la-CmplxLU.lo -MD -MP -MF
.deps/liboctave_la-CmplxLU.Tpo -c CmplxLU.cc  -fPIC -DPIC -o
.libs/liboctave_la-CmplxLU.o
CmplxLU.cc: In constructor 'ComplexLU::ComplexLU(const ComplexMatrix&)':
CmplxLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'
CmplxLU.cc: In constructor 'ComplexLU::ComplexLU(const ComplexMatrix&)':
CmplxLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -O2 -DHAVE_CONFIG_H -mieee-fp
-I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread
-O2 -MT liboctave_la-dbleLU.lo -MD -MP -MF
.deps/liboctave_la-dbleLU.Tpo -c dbleLU.cc  -fPIC -DPIC -o
.libs/liboctave_la-dbleLU.o
dbleLU.cc: In constructor 'LU::LU(const Matrix&)':
dbleLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'
dbleLU.cc: In constructor 'LU::LU(const Matrix&)':
dbleLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -O2 -DHAVE_CONFIG_H -mieee-fp
-I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread
-O2 -MT liboctave_la-fCmplxLU.lo -MD -MP -MF
.deps/liboctave_la-fCmplxLU.Tpo -c fCmplxLU.cc  -fPIC -DPIC -o
.libs/liboctave_la-fCmplxLU.o
fCmplxLU.cc: In constructor 'FloatComplexLU::FloatComplexLU(const
FloatComplexMatrix&)':
fCmplxLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp'
or 'vfork'
fCmplxLU.cc: In constructor 'FloatComplexLU::FloatComplexLU(const
FloatComplexMatrix&)':
fCmplxLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp'
or 'vfork'

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -O2 -DHAVE_CONFIG_H -mieee-fp
-I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread
-O2 -MT liboctave_la-floatLU.lo -MD -MP -MF
.deps/liboctave_la-floatLU.Tpo -c floatLU.cc  -fPIC -DPIC -o
.libs/liboctave_la-floatLU.o
floatLU.cc: In constructor 'FloatLU::FloatLU(const FloatMatrix&)':
floatLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'
floatLU.cc: In constructor 'FloatLU::FloatLU(const FloatMatrix&)':
floatLU.cc:70: warning: variable 'mn' might be clobbered by 'longjmp' or 'vfork'

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-display.lo -MD -MP -MF
.deps/liboctinterp_la-display.Tpo -c display.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-display.o
display.cc: In member function 'void display_info::init(bool)':
display.cc:102: warning: use of old-style cast
display.cc:102: warning: use of old-style cast
display.cc:113: warning: use of old-style cast
display.cc:114: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT liboctinterp_la-lex.lo
-MD -MP -MF .deps/liboctinterp_la-lex.Tpo -c lex.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-lex.o
lex.cc:312: warning: use of old-style cast
lex.cc:371: warning: use of old-style cast
lex.cc:371: warning: use of old-style cast
lex.cc: In function 'int octave_lex()':
lex.cc:1809: warning: use of old-style cast
lex.cc:1809: warning: use of old-style cast
lex.cc:1817: warning: use of old-style cast
lex.cc:1819: warning: use of old-style cast
lex.cc:1821: warning: use of old-style cast
lex.cc:1835: warning: use of old-style cast
lex.ll:663: warning: use of old-style cast
lex.cc:2874: warning: use of old-style cast
lex.cc: In function 'int yy_get_next_buffer()':
lex.cc:3040: warning: use of old-style cast
lex.cc:3063: warning: use of old-style cast
lex.cc:3076: warning: use of old-style cast
lex.cc:3076: warning: use of old-style cast
lex.cc:3097: warning: use of old-style cast
lex.cc:3122: warning: use of old-style cast
lex.cc:3125: warning: use of old-style cast
lex.cc:3125: warning: use of old-style cast
lex.cc: In function 'yy_state_type yy_get_previous_state()':
lex.cc:3151: warning: use of old-style cast
lex.cc:3151: warning: use of old-style cast
lex.cc:3159: warning: use of old-style cast
lex.cc:3161: warning: use of old-style cast
lex.cc:3163: warning: use of old-style cast
lex.cc: In function 'yy_state_type yy_try_NUL_trans(yy_state_type)':
lex.cc:3187: warning: use of old-style cast
lex.cc:3189: warning: use of old-style cast
lex.cc:3191: warning: use of old-style cast
lex.cc: In function 'void yyunput(int, char*)':
lex.cc:3218: warning: use of old-style cast
lex.cc:3219: warning: use of old-style cast
lex.cc:3227: warning: use of old-style cast
lex.cc: In function 'int yyinput()':
lex.cc:3300: warning: use of old-style cast
lex.cc: In function 'yy_buffer_state* octave__create_buffer(FILE*, int)':
lex.cc:3381: warning: use of old-style cast
lex.cc:3390: warning: use of old-style cast
lex.cc: In function 'void octave__delete_buffer(yy_buffer_state*)':
lex.cc:3412: warning: use of old-style cast
lex.cc:3415: warning: use of old-style cast
lex.cc:3417: warning: use of old-style cast
lex.cc: In function 'void octave_ensure_buffer_stack()':
lex.cc:3547: warning: use of old-style cast
lex.cc:3567: warning: use of old-style cast
lex.cc: In function 'yy_buffer_state* octave__scan_buffer(char*, yy_size_t)':
lex.cc:3593: warning: use of old-style cast
lex.cc: In function 'yy_buffer_state* octave__scan_bytes(const char*, int)':
lex.cc:3642: warning: use of old-style cast
lex.cc: In function 'int yy_init_globals()':
lex.cc:3779: warning: use of old-style cast
lex.cc:3788: warning: use of old-style cast
lex.cc:3789: warning: use of old-style cast
lex.cc: In function 'void* octave_alloc(yy_size_t)':
lex.cc:3846: warning: use of old-style cast
lex.cc: In function 'void* octave_realloc(void*, yy_size_t)':
lex.cc:3858: warning: use of old-style cast
lex.cc:3858: warning: use of old-style cast
lex.cc: In function 'void octave_free(void*)':
lex.cc:3863: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-load-path.lo -MD -MP -MF
.deps/liboctinterp_la-load-path.Tpo -c load-path.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-load-path.o
load-path.cc: In function 'std::string strip_trailing_separators(const
std::string&)':
load-path.cc:620: warning: comparison between signed and unsigned
integer expressions

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT liboctinterp_la-mex.lo
-MD -MP -MF .deps/liboctinterp_la-mex.Tpo -c mex.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-mex.o
mex.cc: In member function 'virtual mxArray* mxArray_octave_value::dup() const':
mex.cc:336: warning: no return statement in function returning non-void
mex.cc: In constructor 'mxArray_number::mxArray_number(mwSize, const char**)':
mex.cc:1189: warning: comparison between signed and unsigned integer expressions

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-oct-map.lo -MD -MP -MF
.deps/liboctinterp_la-oct-map.Tpo -c oct-map.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-oct-map.o
oct-map.cc: In member function 'string_vector Octave_map::keys() const':
oct-map.cc:1382: warning: comparison between signed and unsigned
integer expressions

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-oct-parse.lo -MD -MP -MF
.deps/liboctinterp_la-oct-parse.Tpo -c oct-parse.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-oct-parse.o
oct-parse.cc: In function 'int octave_parse()':
oct-parse.cc:2363: warning: use of old-style cast
oct-parse.cc:2378: warning: use of old-style cast
oct-parse.cc:2421: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT liboctinterp_la-pager.lo
-MD -MP -MF .deps/liboctinterp_la-pager.Tpo -c pager.cc  -fPIC -DPIC
-o .libs/liboctinterp_la-pager.o
pager.cc: In function 'bool pager_event_handler(pid_t, int)':
pager.cc:111: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-sighandlers.lo -MD -MP -MF
.deps/liboctinterp_la-sighandlers.Tpo -c sighandlers.cc  -fPIC -DPIC
-o .libs/liboctinterp_la-sighandlers.o
sighandlers.cc: In function 'void my_friendly_exit(const char*, int, bool)':
sighandlers.cc:159: warning: use of old-style cast
sighandlers.cc:185: warning: use of old-style cast
sighandlers.cc: In function 'octave_interrupt_handler
octave_ignore_interrupts()':
sighandlers.cc:492: warning: use of old-style cast
sighandlers.cc: In function 'void install_signal_handlers()':
sighandlers.cc:586: warning: use of old-style cast
sighandlers.cc:632: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-syscalls.lo -MD -MP -MF
.deps/liboctinterp_la-syscalls.Tpo -c syscalls.cc  -fPIC -DPIC -o
.libs/liboctinterp_la-syscalls.o
syscalls.cc: In function 'octave_value_list FWIFEXITED(const
octave_value_list&, int)':
syscalls.cc:1389: warning: use of old-style cast
syscalls.cc: In function 'octave_value_list FWEXITSTATUS(const
octave_value_list&, int)':
syscalls.cc:1417: warning: use of old-style cast
syscalls.cc: In function 'octave_value_list FWIFSIGNALED(const
octave_value_list&, int)':
syscalls.cc:1444: warning: use of old-style cast
syscalls.cc:1444: warning: use of old-style cast
syscalls.cc: In function 'octave_value_list FWTERMSIG(const
octave_value_list&, int)':
syscalls.cc:1472: warning: use of old-style cast
syscalls.cc: At global scope:
syscalls.cc:1483: warning: unused parameter 'args'
syscalls.cc: In function 'octave_value_list FWIFSTOPPED(const
octave_value_list&, int)':
syscalls.cc:1531: warning: use of old-style cast
syscalls.cc: In function 'octave_value_list FWSTOPSIG(const
octave_value_list&, int)':
syscalls.cc:1559: warning: use of old-style cast
syscalls.cc: In function 'octave_value_list FWIFCONTINUED(const
octave_value_list&, int)':
syscalls.cc:1586: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT
liboctinterp_la-toplev.lo -MD -MP -MF .deps/liboctinterp_la-toplev.Tpo
-c toplev.cc  -fPIC -DPIC -o .libs/liboctinterp_la-toplev.o
toplev.cc: In function 'int wait_for_input(int)':
toplev.cc:763: warning: use of old-style cast
toplev.cc:763: warning: use of old-style cast
toplev.cc:763: warning: use of old-style cast
toplev.cc: In function 'octave_value_list
run_command_and_return_output(const std::string&)':
toplev.cc:813: warning: use of old-style cast
toplev.cc:814: warning: use of old-style cast
toplev.cc: In function 'octave_value_list Fsystem(const
octave_value_list&, int)':
toplev.cc:987: warning: use of old-style cast
toplev.cc:988: warning: use of old-style cast

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -O2 -pthread -O2 -MT liboctinterp_la-utils.lo
-MD -MP -MF .deps/liboctinterp_la-utils.Tpo -c utils.cc  -fPIC -DPIC
-o .libs/liboctinterp_la-utils.o
utils.cc: In function 'char* octave_vsnprintf(const char*, char*)':
utils.cc:1244: warning: comparison between signed and unsigned integer
expressions

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../libgnu
-I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I.
-O2 -pthread -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread -pthread -O2
-pthread -MT liboctinterp_la-xgl2ps.lo -MD -MP -MF
.deps/liboctinterp_la-xgl2ps.Tpo -c xgl2ps.c  -fPIC -DPIC -o
.libs/liboctinterp_la-xgl2ps.o
In file included from xgl2ps.c:32:
gl2ps.c:445: warning: function declaration isn't a prototype
gl2ps.c:463: warning: function declaration isn't a prototype
gl2ps.c: In function 'gl2psListPointer':
gl2ps.c:571: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psCompareDepth':
gl2ps.c:1370: warning: cast discards qualifiers from pointer target type
gl2ps.c:1371: warning: cast discards qualifiers from pointer target type
gl2ps.c: In function 'gl2psTrianglesFirst':
gl2ps.c:1399: warning: cast discards qualifiers from pointer target type
gl2ps.c:1400: warning: cast discards qualifiers from pointer target type
gl2ps.c: In function 'gl2psFindRoot':
gl2ps.c:1406: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psBuildBspTree':
gl2ps.c:1522: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: At top level:
gl2ps.c:1618: warning: function declaration isn't a prototype
gl2ps.c: In function 'gl2psPrintPostScriptBeginViewport':
gl2ps.c:3114: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psPrintTeXBeginViewport':
gl2ps.c:3307: warning: unused parameter 'viewport'
gl2ps.c: In function 'gl2psPrintPDFBeginViewport':
gl2ps.c:4762: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psPrintSVGPixmap':
gl2ps.c:5007: warning: unused parameter 'x'
gl2ps.c:5007: warning: unused parameter 'y'
gl2ps.c:5007: warning: unused parameter 'pixmap'
gl2ps.c: In function 'gl2psPrintSVGBeginViewport':
gl2ps.c:5196: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psPrintPGFBeginViewport':
gl2ps.c:5426: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psBeginPage':
gl2ps.c:5613: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
gl2ps.c: In function 'gl2psDrawPixels':
gl2ps.c:5897: warning: cast discards qualifiers from pointer target type
gl2ps.c: In function 'gl2psDrawImageMap':
gl2ps.c:5942: warning: cast discards qualifiers from pointer target type

-- 
*****************************************
José Luis García Pallero
address@hidden
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]