I just read this post about why there are new line warnings, but honestly, my team has people working on several different platforms and with several different editors (each uses what it imposes on them), so the warning has become widespread , and since he really shouldn’t be warned that he cares about it, he becomes a noise and makes it difficult to find serious warnings.
Many times, important warnings went unnoticed, because people got used to the fact that useless warnings were heard past them, so they obviously just stopped looking at them carefully and with the reason IMHO. We can say that in our case, the GCC cries a wolf too much for someone to take this seriously, which is a bad attitude, but its just human nature.
Right now we are compiling with -Wall, because we need warnings, but is there a counter flag to avoid newline warnings?
Note: I looked at the manual a bit, but could not find an answer anywhere, so I gave up.
Note: In response to an absolutely sensible Robert Gamble solution, our code is cross-platform and we have people and it works on Linux, Solaris and Windows, so the new line ... is not under consensus. And someone compiler will always cry. Because there are more than 40 developers and other employees who are not programmers.
source
share