how serious are these compiler warnings?



When I am using the GOption functionality, and initializing my mumble_entries[] array, the IBM 7.0 compiler on AIX 5.3 seems to be displeased:

static GOptionEntry netperf_entries[] =
  {
{"output",'o', 0, G_OPTION_ARG_CALLBACK, set_output_destination, "Specify where misc output should go", NULL}, {"input",'i',0, G_OPTION_ARG_CALLBACK, set_input_source, "Specify the command file", NULL}, {"config", 'c', 0, G_OPTION_ARG_CALLBACK, set_config_source, "Specify the configuration file", NULL}, {"debug", 'd', G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, set_debug, "Set the level of debugging output", NULL}, {"version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, show_version,"Display the netserver version and exit", NULL}, {"verbose", 'v', G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, set_verbose, "Set verbosity level for output", NULL}, {"brief", 'b', 0, G_OPTION_ARG_NONE, &want_brief, "Request brief output", NULL}, {"quiet", 'q', 0, G_OPTION_ARG_NONE, &want_quiet, "Display no test banners", NULL},
    { NULL }
  };

source='netperf.c' object='netperf.o' libtool=no depfile='.deps/netperf.Po' tmpdepfile='.deps/netperf.TPo' depmode=aix /bin/sh ../depcomp xlc -g -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR="\"/usr/local/lib\"" -DNETPERFDIR="\"/usr/local/share/netperf\"" -D_THREAD_SAFE -I/opt/freeware/include/libxml2 -I/opt/freeware/include/glib-2.0 -I/opt/freeware/lib/glib-2.0/include -c `test -f 'netperf.c' || echo './'`netperf.c "netperf.c", line 258.46: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed. "netperf.c", line 259.44: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed. "netperf.c", line 260.47: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed. "netperf.c", line 261.71: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed. "netperf.c", line 262.67: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed. "netperf.c", line 263.73: 1506-196 (W) Initialization between types "void*" and "int(*)(char*,char*,void*,struct _GError**)" is not allowed.

which seems to be an issue with the callback function field of the GOptionEntry. Do folks think it is something really worth worrying about or should I just blythly ignore it and move-on?

rick jones



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