Sigh. It's been a while since I've fixed the "feature" of gcc(1) that makes it hide warnings in system headers (but visible with -nostdinc -I/usr/include). I've stumbled upon a problem today, wondering, why the hell cpp(1) wasn't complaining me about the redefines, and the answer was: GNU cpp(1) hides warnings in system headers by default. Rather than hack contrib/gcc sources, it can be fixed the official way, like this:
%%% Index: bsd.sys.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.sys.mk,v retrieving revision 1.11 diff -u -r1.11 bsd.sys.mk --- bsd.sys.mk 13 Nov 2002 13:49:29 -0000 1.11 +++ bsd.sys.mk 13 Mar 2003 15:24:56 -0000 @@ -9,6 +9,7 @@ # for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143 .if !defined(NO_WARNS) +CFLAGS += -Wsystem-headers . if defined(WARNS) . if ${WARNS} > 0 . if !defined(NO_WERROR) %%% Anyone objects to having this in? Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age
pgp00000.pgp
Description: PGP signature