|
From: Keith M. <kei...@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)
>
> <start>
> #define SOME_DEFINEint func();
>
> int main(int, char **)
> {
> func();
> return 0;
> }
> <end>
>
> 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.
Regards,
Keith.
|