[PATCH] Warn on empty switch statements
Richard Smith
richard at metafoo.co.uk
Tue May 28 20:07:31 PDT 2013
What kinds of bugs does this catch that -Wunreachable-code misses?
On Tue, May 28, 2013 at 8:27 AM, Aaron Ballman <aaron at aaronballman.com>wrote:
> This patch addresses PR4546; it warns when a switch statement contains
> a body, but the body does not contain any case or default labels.
>
> ~Aaron
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130528/66e2435e/attachment.html>
More information about the cfe-commits
mailing list