GCC 3 complains (outputs warnings) about any C++ header
files that do not have newlines at the end of the file.
Unfortunately there is no way to turn off this warning
without turning off all gcc warnings. (IMHO, this is a
serious oversight of the gcc developers).
I know that it is only a warning, but it is highly
annoying and potentially harmful. It is harmful in
that it makes "real" warnings difficult to find inside
the tons of compiler output. I have actually been
bitten by this several times where the compiler outputs
a warning that tells me of a bug in my code, but I
didn't notice the warning because of all the newline
warnings that are output. :(
Would it be possible for someone with commit access to
please add newlines to the end of all the header files.
On Unix, an "echo '' >> header.h" for each header file
should solve the problem nicely. :)
Logged In: NO
This problem occours with other compilers also. I think it is
caused because the header files are ended in a comment.
Adding another newline after the comment solves the problem.