Bug 16688 - No newline at end of file error.
Summary: No newline at end of file error.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc   
(Show other bugs)
Version: 7.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
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:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-22 16:04:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.