13
Is there any way to make gcc or clang warn about missing breaks in switch statements?
Specifically, I almost always want case statements to end with breaks, and it would be great it I could get the compiler to complain if I don't. Even better would be if it would look for either a break statement or a "// fall through" comment.
Is there a different solution people use to help themselves not screw this up?