no newline at end of file
hello, when i compiling uchardet to dynamic library on linux, some compiler report warning : no newline at end of file. I find some cpp file in path uchardet/src/LangModels such as LangEsperantoModel.cpp indeed not end file with a new line. so i fix this warning by add a new line at end of those file.
This is why compiler report warning: in C99 standard: A backslash immediately before a newline has long been used to continue string literals, as well as preprocessing command lines. In the interest of easing machine generation of C, and of transporting code to machines with restrictive physical line lengths, the C89 Committee generalized this mechanism to permit any token to be continued by interposing a backslash/newline sequence.
Therefore, is that a meaningful way to add a new line at end of those file to avoid warning from compiler?