This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: thoughts on martin's proposed patch for GCC and UTF-8
- To: tim at wagner dot princeton dot edu
- Subject: Re: thoughts on martin's proposed patch for GCC and UTF-8
- From: Craig Burley <burley at gnu dot org>
- Date: Thu, 10 Dec 1998 08:56:46 -0500 (EST)
- Cc: eggert at twinsun dot com, martin at mira dot isdn dot cs dot tu-berlin dot de, brolley at cygnus dot com, gcc2 at gnu dot org, egcs at cygnus dot com
- Cc: burley at gnu dot org
>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)