This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Warn if `#' is preceded by whitespace?
- To: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Subject: Re: Warn if `#' is preceded by whitespace?
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 15 Feb 2000 22:58:04 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <orwvo5lk2t.fsf@garnize.lsd.ic.unicamp.br>
On Wed, Feb 16, 2000 at 04:47:54AM -0200, Alexandre Oliva wrote:
> Wouldn't it be a good idea to emit a warning when the `#' of a CPP
> directive is not in the beginning of the line?
Certainly not with no way to turn it off! It's explicitly permitted
by C89, and I've seen it used deliberately to hide directives from K+R
preprocessors.
I'd suggest -Wtraditional only (which cpp doesn't know about right
now, but that can easily change).
zw