This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: thoughts on martin's proposed patch for GCC and UTF-8


>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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]