Date: Mon, 27 Oct 2003 15:45:09 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Peter Wemm <peter@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/xlint/xlint xlint.c Message-ID: <20031027154126.P21274@gamplex.bde.org> In-Reply-To: <200310260334.h9Q3YDpB007087@repoman.freebsd.org> References: <200310260334.h9Q3YDpB007087@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 25 Oct 2003, Peter Wemm wrote: > peter 2003/10/25 20:34:13 PDT > > FreeBSD src repository > > Modified files: > usr.bin/xlint/xlint xlint.c > Log: > Move the -Wtraditional warning from the global cpp flags to when the -p > (portability warnings) switch is used. Add -Wno-system-headers after it so > that we dont get 500 screenfulls of warnings about #elif in /usr/include. > I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and > instead nest #else clauses? No, since the system headers don't actually work for K&R compilers (or even C90 compilers :-() despite cdefs.h having compatibility cruft for K&R. They work for at most "gcc -E -traditional -Wno-system-headers". Probably not even for that, so lint's -p and -t flags don't actually work. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031027154126.P21274>