|
From: Mojca M. <moj...@gm...> - 2012-08-28 00:01:23
|
Hello,
I'm sending a bunch of compiler warnings for gnuplot from two
different compilers. The first batch comes from Sparc Solaris, the
second one from clang on Mac OS X 10.7 (most warnings are recent, in
particular those about plot2d; the last three are older).
"datafile.c", line 448: warning: syntax error: empty declaration
"datafile.c", line 642: warning: statement not reached
"set.c", line 1444: warning: argument #2 is incompatible with prototype:
prototype: pointer to pointer to const char :
"/opt/csw/include/iconv.h", line 83
argument : pointer to pointer to char
"../term/emf.trm", line 344: warning: initializer does not fit or is
out of range: -5
"../term/hpgl.trm", line 2580: warning: statement not reached
"../term/lua.trm", line 469: warning: initialization type mismatch
"term.c", line 2159: warning: tokens ignored at end of directive line
"wxterminal/wxt_gui.cpp", line 1669: Warning (Anachronism): Formal
argument 1 of type extern "C" void(*)() in call to std::atexit(extern
"C" void(*)()) is being passed void(*)().
"wxterminal/wxt_gui.cpp", line 3831: Warning (Anachronism): Formal
argument 2 of type extern "C" void(*)(int) in call to std::signal(int,
extern "C" void(*)(int)) is being passed void(*)(int).
"wxterminal/wxt_gui.cpp", line 3866: Warning (Anachronism): Formal
argument 2 of type extern "C" void(*)(int) in call to std::signal(int,
extern "C" void(*)(int)) is being passed void(*)(int).
"wxterminal/wxt_gui.cpp", line 3866: Warning (Anachronism): Assigning
extern "C" void(*)(int) to void(*)(int).
"wxterminal/wxt_gui.cpp", line 3875: Warning (Anachronism): Formal
argument 2 of type extern "C" void(*)(int) in call to std::signal(int,
extern "C" void(*)(int)) is being passed void(*)(int).
5 Warning(s) detected.
"gplt_x11.c", line 634: warning: initializer does not fit or is out of
range: 129
"gplt_x11.c", line 635: warning: initializer does not fit or is out of
range: 136
"gplt_x11.c", line 636: warning: initializer does not fit or is out of
range: 255
"gplt_x11.c", line 637: warning: initializer does not fit or is out of
range: 128
"gplt_x11.c", line 638: warning: initializer does not fit or is out of
range: 128
"gplt_x11.c", line 639: warning: initializer does not fit or is out of
range: 136
"gplt_x11.c", line 640: warning: initializer does not fit or is out of
range: 136
"gplt_x11.c", line 1778: warning: statement not reached
../../original/src/plot2d.c:821:7: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE(cp->CRD_COLOR, v[2], cp->type,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:603:5: note: expanded from macro
'COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE'
STORE_WITH_LOG_AND_UPDATE_RANGE(STORE, VALUE, c_type_tmp, AXIS, \
^
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
../../original/src/plot2d.c:1304:2: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
STORE_WITH_LOG_AND_UPDATE_RANGE(current_plot->varcolor[i],
current_plot->varcolor[i],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
2 warnings generated.
../../original/src/plot3d.c:665:3: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE(points->CRD_COLOR, z,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:603:5: note: expanded from macro
'COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE'
STORE_WITH_LOG_AND_UPDATE_RANGE(STORE, VALUE, c_type_tmp, AXIS, \
^
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
../../original/src/plot3d.c:1042:4: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE(cp->CRD_COLOR, color, cp->type,
COLOR_AXIS, this_plot->noautoscale, NOOP, goto
come_here_if_undefined);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:603:5: note: expanded from macro
'COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE'
STORE_WITH_LOG_AND_UPDATE_RANGE(STORE, VALUE, c_type_tmp, AXIS, \
^
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
../../original/src/plot3d.c:1044:4: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE(cp->CRD_COLOR, z, cp->type,
COLOR_AXIS, this_plot->noautoscale, NOOP, goto
come_here_if_undefined);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:603:5: note: expanded from macro
'COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE'
STORE_WITH_LOG_AND_UPDATE_RANGE(STORE, VALUE, c_type_tmp, AXIS, \
^
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
../../original/src/plot3d.c:1207:3: warning: array index of '-1'
indexes before the beginning of the array [-Warray-bounds]
COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE(points[i].CRD_COLOR, temp,
points[i].type,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../original/src/axis.h:603:5: note: expanded from macro
'COLOR_STORE_WITH_LOG_AND_UPDATE_RANGE'
STORE_WITH_LOG_AND_UPDATE_RANGE(STORE, VALUE, c_type_tmp, AXIS, \
^
../../original/src/axis.h:543:10: note: expanded from macro
'STORE_WITH_LOG_AND_UPDATE_RANGE'
axis = &axis_array[AXIS - SECOND_AXES]; \
^
../../original/src/axis.h:303:1: note: array 'axis_array' declared here
extern AXIS axis_array[AXIS_ARRAY_SIZE];
^
4 warnings generated.
../../original/src/util.c:518:10: warning: 'sprintf' macro redefined
# define sprintf(str,fmt,arg) \
^
/usr/include/secure/_stdio.h:49:9: note: previous definition is here
#define sprintf(str, ...) \
^
1 warning generated.
../../original/src/wxterminal/wxt_gui.cpp:2750:11: warning:
enumeration value 'command_enhanced_put_text' not handled in switch
[-Wswitch-enum]
switch ( command.command ) {
^
1 warning generated.
../../original/src/gplt_x11.c:4565:11: warning: 'XKeycodeToKeysym' is
deprecated [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, event->xkey.keycode, 0);
^
1 warning generated.
Mojca
|