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: unassignedclangb...@nondot.org
          Reporter: hui.xie0...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to