This post went around back in January. I need some clarification.
I have an enum declaring 30 enumerated values
a=0
b=1
c=2
etc
I have a switch statement that I don't want to use all 30 enumerations in.
I get the compiler error "enumeration value not handled in switch"
I am using g++ on a unix box.
The -Wswitch compiler option that was suggested in the previous posting is available to me but it does not supress the warning. Using it does not suppress the error.
Actually the previous post said -Wswitch-enum which I don't see in the gnu manpage.
What is the correct option to use -Wswitch or -Wswitch-enum? and where does it go in the makefile. In CFLAGS or LDFLAGS???
The default case does stop the warnings, but, if the compiler option is doing what it's supposed to do, I shouldn't need the default case.
Thanks
emp1953