https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87038
--- Comment #17 from Harald van Dijk <harald at gigawatt dot nl> --- (In reply to Steinar H. Gunderson from comment #16) > Since you're asking (presumably rhethorically): I would certainly recommend > that this code be changed, yes, and I don't find the author's intent obvious > at all. I'm surprised by that. I'm not the one who wrote the code, but it seemed obvious to me when I started working with it. > The fix that comes to mind is to scope the case clause: Okay, that's cleaner than what I had suggested. Still, I hope you will check how much software uses this before deciding on whether to include the warning in -Wall. I can probably try a rebuild of my current system with that warning turned into an error to get an estimate of how big the impact will be, if you like, though it will not be as extensive as if one of the distros were willing to include it in their next mass rebuild.