Hi, gcc 3.0 gives me a bunch of annoying warnings when compiling with the -pedantic option, because there are several macros (e.g. g_error) which are either too new (c99) or GNU extensions. I cannot compile with -std=c99 since that doesn't work with C++. With the attached patch (for glib-1.2.10) things are fine (at least for me). The changes are a check for __STRICT_ANSI__ triggering fallback to the function implementations, and an extra check for __GNUC__ detecting wether inlining va_arg functions is possible. It compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. Is the patch ok for you to apply? Regards, --Daniel
Attachment:
glib.h.patch
Description: Binary data