Brain teaser: what does this switch statement print?
gist.github.com
A nefarious programming bug awaiting all C programmers...especially when coding on low sleep!
gist.github.com
$ 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).