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] |
> -----Original Message----- > From: gcc-owner On Behalf Of Dave Korn > Sent: 13 July 2004 14:45 > > -----Original Message----- > > From: gcc-owner On Behalf Of Iman Mansoori Gowhari > > Sent: 12 July 2004 15:33 > > To: gcc > > Subject: warning: no newline at end of file > > > > How can I disable this warning: > > "warning: no newline at end of file" > > Thanks. > > > Put a newline at the end of the file. ... Or you could always apply this patch (generated against release 3.3.3, so may need a little fuzz to fit into whatever version you're using), and then use the flag -Wno-eof-newline to disable the warning.... [ Note that this patch isn't a submission because I'm fairly sure I'm not using the correct option-parsing mechanism; I'm sure I should be adding a case to the switch statement in xxxxx, rather than manually copying a global in c_common_post_options. Oh, and I didn't update the docs either. Both these things would need doing properly in a real patch. However, it does the job in a QUAD fashion. ] cheers, DaveK -- Can't think of a witty .sigline today....
Attachment:
warn-eof-newline-patch.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |