warning: no newline at end of file - really starting to get on my nerves
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I guess this is a warning from gcc? Be sure that any headers file are ending by an empty line, this is due assure source compatibility if you want to compile your sources with some very old C compiler that doesn't handle header files inclusion properly when they does not end by an empty newline...
There's a standard thing you'll find. Going back to typewriter days, the m$dos system and successors did a carriage_return/line_feed. Linux just puts the return at the end of a line. There are utilities to swap around it. BTW, if you find yourself here, just be aware that this problem was licked in the 70s or early 80s and the solutions are many utilities that convert msods files to linux ones. You can even write a file and add carriage returns with sed or awk
If you have no return at all, and you want one, I think it's done off the terminal width. In vim, you can do this with
:set tw=80
or any chosen figure. My knowledge of vim, emacs, etc is also squat
These are the joys of 'reinventing the wheel'. If you have a clear vision how your system is going to differ, start a project. If not, forget it, as what you write now will be out of date by the time you have much assembled.
Or using your favorite text editor move the cursor to the end of the last line, past the last character and press the enter key. gcc expects an end of line character on every line but it sees an end of file marker.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.