D
Daniel C Bastos
intro:
i have a simple c program that uses gtk (1.2) which in turn uses glib.
using the flag -Wall i get no warnings.
using -Wall -ansi no warnings.
using -Wall -ansi -pedantic I get these warnings
In file included from /usr/include/gtk-1.2/gdk/gdktypes.h:33,
from /usr/include/gtk-1.2/gdk/gdk.h:31,
from /usr/include/gtk-1.2/gtk/gtk.h:31,
from buncha_buttons.c:1:
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO
C does not permit named variadic macros
In glib.h, line 1308 I find:
#define g_error(format...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_ERROR, \
format)
the other lines are similar #define statements.
question: what is named variadic macros? should the glib guys fix this?
should I upgrade and face the newest problems? should I just don't care
because who uses glib/gtk will never respect the standard? did I miss
some useful information on this matter? thanks for any input on this.
i have a simple c program that uses gtk (1.2) which in turn uses glib.
using the flag -Wall i get no warnings.
using -Wall -ansi no warnings.
using -Wall -ansi -pedantic I get these warnings
In file included from /usr/include/gtk-1.2/gdk/gdktypes.h:33,
from /usr/include/gtk-1.2/gdk/gdk.h:31,
from /usr/include/gtk-1.2/gtk/gtk.h:31,
from buncha_buttons.c:1:
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO
C does not permit named variadic macros
In glib.h, line 1308 I find:
#define g_error(format...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_ERROR, \
format)
the other lines are similar #define statements.
question: what is named variadic macros? should the glib guys fix this?
should I upgrade and face the newest problems? should I just don't care
because who uses glib/gtk will never respect the standard? did I miss
some useful information on this matter? thanks for any input on this.