This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652

Eric Smith <eric at brouhaha dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at brouhaha dot com

--- Comment #8 from Eric Smith <eric at brouhaha dot com> 2012-02-21 01:01:19 UTC ---
Actually, I would want this warning to occur for all non-empty cases that don't
end in a break or return.  However, I'd also want some means (perhaps a pragma)
to put in the code to suppress the warning for any specific cases that I
actually intend to fall through to the next case.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]