Re:Useful GCC warning options not enabled by -Wall -Wextra
by minexew on Wednesday October 04, 2017 @03:03PM
(#15403404)
I should have clarified more; you'd use this for switches where you need to always handle all cases.
Then if a you add a new value to the enum but forget to update the switch, you get a compile-time error instead of a buggy program.
[ Parent
| on HN ]