------- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-22 20:50 ------- This happens because the warning happens very early in the compiler so it does not know that the case5 is not going to be used. I think the warning is correct and not really bogus if you take that into account.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36902