Bug 16688

Summary: No newline at end of file error.
Product: [Retired] Red Hat Linux Reporter: Fin <jonathan.jackson>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-22 16:04:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.