Adam Mallory
|
RE: No newline at end of file warnings
|
Adam Mallory
11/04/2007 9:22 PM
post2445
|
RE: No newline at end of file warnings
> This hardly seems to warrant a warning regardless of what C99 says.
The standard has the wording 'shall' and that means failure to comply should
elicit a diagnostic message. As Ryan mentioned, a comprimise would be to
only show the warning when -pendanic is on.
That said, without a NL ending, header files and other includes via
pre-processor might not build properly. Making the warning disappear
doesn't fix the error and ignoring it is at your own risk.
--
Cheers,
Adam
QNX Software Systems
[ amallory@qnx.com ]
---------------------------------------------------
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster
|
|
|