https://bugs.llvm.org/show_bug.cgi?id=41746
Bug ID: 41746
Summary: No warning on unused exception parameter with -Wall
-Wextra
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: mark.z.harri...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Created attachment 21892
--> https://bugs.llvm.org/attachment.cgi?id=21892&action=edit
Source file demonstrating bug
~ > cat unused.cpp
int main()
{
try
{
throw 0;
}
catch(int k)
{
}
return 0;
}
====================
Compile with: clang++ -Wall -Wextra unused.cpp
No warnings are produced about the unused exception parameter k.
--
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