News for hackers. Stuff that matters.
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.
Re:Useful GCC warning options not enabled by -Wall -Wextra by asveikau on Wednesday October 04, 2017 @05:15PM (#15404771)
But the flag affects all switches on enums.