25 points · by theonewolf · 13y ago · 18 comments
$ echo $CFLAGS
-Werror -Wall -Wextra -Wold-style-definition -Wmissing-declarations -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -std=c11 -pedanticAnd yet I missed it :(
(but you get the point :D)
If you were inspecting code without a compiler it's easier to miss.
The standard '-Wall -Werror' catches it (arguably, it'd be nice if everyone _at least_ did -Wall by default).