From: Keith MARSHALL <keith.marshall@to...> - 2005-01-20 14:44:32
Al Slater wrote:
> >>>---[relevant content snipped for brevity]---------
> With the above, surely a prepocessed output could be (I'm not suggesting
> that such a preprocessor exists)
> #define SOME_DEFINEint func();
> int main(int, char **)
> return 0;
> This would not then compile. A newline at the end of a.h would clearly
> solve the problem.
> The warning should be taken as a portablity hint.
Indeed. Just reinforces my assertion that the standard's requirement for
a terminating newline is *not* BS.
The warning could be taken as a portability hint, or, as I said earlier,
it could indicate an accidentally truncated source file. In either case,
it is indicative of a potential problem, and therefore, useful.
Get latest updates about Open Source Projects, Conferences and News.