[llvm-bugs] [Bug 39382] New: Enable -Wimplicit-fallthrough for C

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 22 10:14:20 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39382

            Bug ID: 39382
           Summary: Enable -Wimplicit-fallthrough for C
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: chh at google.com, llozano at chromium.org,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk,
                    srhines at google.com

For some reason, -Wimplicit-fallthrough doesn't do anything for C code.  It
doesn't produce a warning for being an unrecognized flag, it just doesn't print
any Diags.

Would be nice to have with:
https://bugs.llvm.org/show_bug.cgi?id=37135

https://godbolt.org/z/gV_c9_

-- 
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/20181022/7f7eae3d/attachment-0001.html>


More information about the llvm-bugs mailing list