[llvm-bugs] [Bug 52244] New: -Wno-unused has no effect after -W

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 20 13:30:23 PDT 2021


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

            Bug ID: 52244
           Summary: -Wno-unused has no effect after -W
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hui.xie0621 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Compile the following code
```
void foo(int a){
}
```
with -Wextra -Wno-unused

It still gives unused warning
unused parameter 'a' [-Werror,-Wunused-parameter]

https://godbolt.org/z/bYhcdY7Y1

-- 
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/20211020/a933355e/attachment.html>


More information about the llvm-bugs mailing list