thoughts on martin's proposed patch for GCC and UTF-8
Craig Burley
burley@gnu.org
Thu Dec 10 07:13:00 GMT 1998
>gcc really should complain "undeclared identifier 'x' in preprocessor
>conditional expression has value 0" when -Wall is specified. Only
>BASIC and perl programmers, and Fortran programmers who don't use
>"implicit none", should have to worry about creating new variables
>every time they make a typo.
Long a pet peeve of mine as well, though I wonder if fixing this might
cause gcc to warn about too many constructs like
#if defined (FOO) && (FOO == 1)
and:
#ifdef FOO
#if FOO == 1
The warning could be made smart enough to avoid most, maybe all, such
spurious warnings.
If not all, the documentation should be pretty clear about what to
do, and what to not bother doing, to eliminate the warnings.
tq vm, (burley)
More information about the Gcc-bugs
mailing list