This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: "no newline at end of file"


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]