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: jlarmour at cygnus dot co dot uk (Jonathan Larmour)
- Date: Thu, 10 Dec 1998 19:30:35 GMT
- Cc: gcc2 at gnu dot org, egcs at cygnus dot com
- Newsgroups: cygnus.egcs
- Organization: Cygnus Solutions Ltd, UK
- References: <199812100145.RAA07906@shade.twinsun.com>
In article <199812100200.VAA06419.cygnus.egcs@wagner.Princeton.EDU> you write:
[ #if X == 1 is a problem if "1" is not ASCII 1 ]
>gcc really should complain "undeclared identifier 'x' in preprocessor
>conditional expression has value 0" when -Wall is specified.
It already does this check if you use -Wundef. Its in the info page, and
not the man page, unfortunately.
`-Wundef'
Warn if an undefined identifier is evaluated in an `#if' directive.
Jifl
--
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @
marry hoping their wives never do. Both are rare." || jifvik.demon.co.uk
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault