Date: Thu, 13 Mar 2003 20:08:54 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@FreeBSD.org>, "David O'Brien" <obrien@FreeBSD.org> Cc: current@FreeBSD.org Subject: Do we want to let cpp(1) hide warnings in system headers? Message-ID: <20030313180854.GB47492@sunbay.com>
next in thread | raw e-mail | index | archive | help
--LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =20 .if !defined(NO_WARNS) +CFLAGS +=3D -Wsystem-headers . if defined(WARNS) . if ${WARNS} > 0 . if !defined(NO_WERROR) %%% Anyone objects to having this in? Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --LpQ9ahxlCli8rRTG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+cMk2Ukv4P6juNwoRAh5SAJwJD+UUPCT00WIfdj2ks2jLp4z4OACffd12 yQ0mlAdbbg0gXWsZB0Lg7X8= =aXtq -----END PGP SIGNATURE----- --LpQ9ahxlCli8rRTG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030313180854.GB47492>