3 ms·
-Wswitch-enum
by bitbckt 13y ago
-Wswitch-enum
- _ZeD_ 13y ago-Werror=switch-enum -Werror=unused-label (but you get the point :D)
- theonewolf 13y agothat's why it's a "Brain teaser" and not a "compiler teaser." 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).