This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: duplicate warnings about missing EOF newline
- To: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Subject: Re: duplicate warnings about missing EOF newline
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 10 May 2001 20:49:54 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <20010510132536.A22555@opensource.lineo.com>
Matt Kraai wrote:-
> With the latest CVS GCC, I see duplicate warnings about a missing
> newline at the end of file.
>
> $ echo -n '#define foo bar' > foo.c
> $ gcc -E foo.c
> foo.c:1:15: warning no newline at end of file
> foo.c:1:15: warning no newline at end of file
> $
Damn, I thought I'd killed that one. However,
$ echo -n 'define foo bar' | gcc -E -
# 1 "<stdin>"
<stdin>:1:14: warning: no newline at end of file
define foo bar
works. It's the fact it's a directive that seems to be doing it.
I'll look into a fix.
Thanks,
Neil.