[LLVMbugs] [Bug 4546] New: Implement warning for irrelevant switch statements

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jul 12 22:31:13 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4546

           Summary: Implement warning for irrelevant switch statements
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


MSVC has a nice warning for code like
--
switch (foo) {
}
--
or 
--
switch (foo) {
default:
...
}
--
which would be nice to have in clang (if only to improve portability for
clients who would like their code to be warning free under MSVC).


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list