cvs commit: src/usr.bin/xlint/xlint xlint.c
Bruce Evans
bde at zeta.org.au
Sun Oct 26 20:45:25 PST 2003
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
More information about the cvs-src
mailing list