This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to deactivate the warning "no newline at end of file"
- From: Tom St Denis <tstdenis at ellipticsemi dot com>
- To: DEV Support Jeremy Virga <dev-support-jvirga at etranges-libellules dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 09 Oct 2007 06:34:59 -0400
- Subject: Re: how to deactivate the warning "no newline at end of file"
- References: <470A3E90.4080104@etranges-libellules.fr>
DEV Support Jeremy Virga wrote:
Hi,
is there a way to intentionally deactivate the warning "no newline at
end of file" ?
It violates the C spec to not have a newline at the end of the file.
Why not just put a newline at the end of the file? or just grep -v out
those warnings :-)
Tom