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]

Re: no newline at end of file


John Levon <moz@compsoc.man.ac.uk> writes:

> What is the rationale for this warning ? What can break or is it a standards thing ?

I believe it's undefined behaviour in the C standard,
but some tools also don't like files that don't end in a newline.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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