I have a complicated switch
statement, and I forgot to put a break
at the end of one of the case
s. This is quite legal, and as a resu
I just went through gcc options, and there is none that will at least give you a notice. There are -Wswitch, -Wswitch-default and -Wswitch-enum ( http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options ), but none of them will work for you.
my best bet would be to use 'else if' statements