2.96 (experimental) -Wundef triggers lots of warnings

Ovidiu Toader ovi@physics.utoronto.ca
Tue Apr 18 07:02:00 GMT 2000


-Wundef triggers lots of warnings in the system headers. No such
warnings showed up with the latest gcc from the 2.95-branch. I thought
__STDC__VERSION__ was set by the compiler itself. 

I don't show the source because the warnings are reported while
compiling many files. If needed I can send one of them.

seahawk:src/NL/Metaprog> uname -a
Linux seahawk 2.2.12 #3 Sun Sep 19 10:20:17 EDT 1999 alpha unknown
seahawk:src/NL/Metaprog> g++ -v
Reading specs from
/usr/local/Packages/lang/egcs.new/install/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.96/specs
gcc version 2.96 20000417 (experimental)
seahawk:src/NL/Metaprog> pmake
[.] g++ -pedantic -ansi -ffor-scope -mcpu=ev6 -pipe -Wundef -W -Wall
-Wnon-virtual-dtor -Wcast-qual -g -I.  -I/home/ovi/PBG/include -c
main.cc -o .DBG/main.o
In file included from /usr/include/libio.h:29,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/streambuf.h:36,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream.h:31,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream:6,
                 from main.cc:7:
/usr/include/features.h:141:44: warning: '_POSIX_C_SOURCE' is not
defined
In file included from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/streambuf.h:40,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream.h:31,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream:6,
                 from main.cc:7:
/usr/local/Packages/lang/egcs.new/install/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.96/include/stdarg.h:57:49:
warning: '__STDC_VERSION__' is not defined
In file included from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream.h:31,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream:6,
                 from main.cc:7:
/usr/local/Packages/lang/egcs.new/install/include/g++-3/streambuf.h:58:25:
warning: '_G_IO_IO_FILE_VERSION' is not defined
/usr/local/Packages/lang/egcs.new/install/include/g++-3/streambuf.h:416:25:
warning: '_G_IO_IO_FILE_VERSION' is not defined
In file included from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream:6,
                 from main.cc:7:
/usr/local/Packages/lang/egcs.new/install/include/g++-3/iostream.h:253:20:
warning: '_G_CLOG_CONFLICT' is not defined
In file included from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/std/complext.h:34,
                 from
/usr/local/Packages/lang/egcs.new/install/include/g++-3/complex:7,
                 from main.cc:8:
/usr/local/Packages/lang/egcs.new/install/include/g++-3/cmath:41:23:
warning: '_G_MATH_H_INLINES' is not defined

--
Ovidiu


More information about the Gcc-bugs mailing list