GCC – No newline at end of file
Just a small post to understand why GCC complains that there is “No newline at end of file” :
> What is the rationale for this warning ? What can break or is it a > standards thing ? Imagine foo.h: blah blah blahNow bar.c: #include "foo.h" #include "grill.h" Now imagine a preprocessor that isn't smart enough to put the newline in for you... blah blah blah#include "grill.h" It may not include grill.h.
That’s obvious but I never thought about it =)
15:09
Loading...
