[LLVMbugs] [Bug 16212] New: -Wmissing-noreturn false positive on switch on empty enum

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 3 11:09:12 PDT 2013


            Bug ID: 16212
           Summary: -Wmissing-noreturn false positive on switch on empty
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

<stdin>:1:24: warning: function 'F' could be declared with attribute 'noreturn'
enum E {}; void F(E e) { switch(e) {} }

Umm, no.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130603/c15fdaf5/attachment.html>

More information about the llvm-bugs mailing list