This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error: "no newline at end of file"
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Martin Michlmayr" <tbm at cyrius dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 27 Mar 2007 13:13:37 +0100
- Subject: Re: error: "no newline at end of file"
- References: <20070327102602.GA21151@deprecation.cyrius.com>
It is a pedantic warning. Pedantic warnings are warnings in C and
errors in C++, unless you use -fpermissive.
So if you are seeing this in C++, the change was intentional because
PR24924 was fixed. If you are seeing it in C and you are not using
pedantic-errors, then it is probably a bug.
Cheers,
Manuel.
On 27/03/07, Martin Michlmayr <tbm@cyrius.com> wrote:
Between 4.3.0 20070303 and 4.3.0 20070326 the "no newline at end of
file" warning changed to an error. Interestingly enough, I cannot see
any obvious change to libcpp/lex.c or the ChangeLog.
Does anyone else see this and know whether this was intentional? I
think this change is a bad idea since it doesn't gain us anything.
--
Martin Michlmayr
http://www.cyrius.com/