Bug 16688 - No newline at end of file error.
Summary: No newline at end of file error.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-21 17:55 UTC by Fin
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-08-22 16:04:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Fin 2000-08-21 17:55:50 UTC
Whenever I try to install new software from source g++ complains that 
there's "no newline at end of file". This doesn't seem to depend on what 
I'm trying to install. Is there some way to make it ignore that 
requirement (on a system wide level) or some other way to fix the problem?

Comment 1 Bill Nottingham 2000-08-22 16:04:28 UTC
It's simply a warning, correct? 

If you have -Werror in your CFLAGS, remove it.

Comment 2 Jakub Jelinek 2000-08-23 14:58:16 UTC
-Wp,-w will turn all preprocessor warnings (unless you use -Werror).
If this happens in some header files we're shipping, let us know, and we'll fix it,
otherwise fix the sources you're compiling. All files passed to the preprocessor
should end with a newline.


Note You need to log in before you can comment on or make changes to this bug.