News for hackers. Stuff that matters.
Re:Useful GCC warning options not enabled by -Wall -Wextra by kazinator on Wednesday October 04, 2017 @06:31PM (#15405313)
I usually add these old standbys:

-Wimplicit-function-declaration: warn when a function is used without being declared (not needed in -std=c99 mode, but I write in c90). Catches functions not being declared in header files, which would result in broken type checking.

-Wmissing-prototypes: external function is defined without a previous prototype declaration. This catches functions that should be static: you fix it by making the function static, or else by prototyping it (in a header) so that it is properly public.

-Wstrict-prototypes: catches accidental old-style definitions or declarations, like void foo(), which isn't a prototype.

Re:Useful GCC warning options not enabled by -Wall -Wextra by wyldfire on Wednesday October 04, 2017 @09:56PM (#15406247)
> Catches functions not being declared in header files, which would result in broken type checking.

Actually it could be much more interesting than that -- the implicit function decl will be `int foo(int)` so you risk your compiler pushing the wrong args on the stack.