I think this is an extremely unusual case restricted to a very
specific platform/compiler combination, so I'm not planning to do
anything about it, except post the workaround, below. Let me know if
it seems worthy of more attention than that.
On Mac OS X v.10.5.7 with the stock GCC, I get literally hundreds of
gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts \
-Wpacked -Wpointer-arith -Wunused-parameter -g -Demacs \
-I. -I/Users/steve/src/XEmacs/sandbox/src -DHAVE_CONFIG_H \
-I/opt/local/include -I/opt/local/include \
-I/opt/local/include/freetype2 -I/usr/X11/include \
In file included from
/opt/local/include/gmp.h:427:74: warning: "__STDC_VERSION__" is not defined
This is due to line 287 in gmp.h:
#elif !(defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465
&& __STDC_VERSION__ >= 199901L)
which is MacPorts brain damage, not from GMP itself (there's a patch
in the MacPorts tree, so yes I'm sure).
If you run into this, running
CFLAGS=-D__STDC_VERSION__=0L ./configure ...
(where ... is your usual set of flags to configure) will suppress
these warnings, and should be safe.
XEmacs-Beta mailing list