The warning from the compiler means exactly what it says it means. You don't have a newline at the end of your file

By definition, text files *must* end with a newline.