This is the mail archive of the gcc-patches@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]

[PATCH][Bug preprocessor/14331] please add option to suppress warning message "no newline at end of file"



  :ADDPATCH libcpp:

ref: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14331

  This is the alternative approach to the "no newline at end of file" warning:
it removes it unconditionally.  For safety and simplicity's sake I didn't mess
with the handling of buffer->next_line.

  Tested with no regressions on x86_64-unknown-linux-gnu with all default
languages.  Ok?


2007-05-07  Dave Korn  <dave.korn@artimi.com>

libcpp/ChangeLog

	* lex.c (_cpp_get_fresh_line):  Don't warn if no newline at EOF.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

Attachment: tested-no-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]