There's something strange with your patch. 'EnumVals' is filled in, but never used. Also, please add a space between 'if'/'for' and '('. Nuno > Hi, > the attached patches implement gcc's -Wswitch and add simple tests for it. > > Michal.