No newline at end of file
From Cppsyntax
This warning
No newline at end of file
is the easiest warning in the world to fix. Go to the end of the file that it is complaining about, put the insertion caret at the end of the file, hit return, and save.
If you use Eclipse CDT, you can set a preference to always make sure there is a newline. Go to Window->Preferences->C/C++->Editor and mark the checkbox next to "Ensure newline at end of file when saving".
