Open MarkZH opened 5 years ago
~ > cat unused.cpp
int main() { try { throw 0; } catch(int k) { } return 0; }
Compile with: clang++ -Wall -Wextra unused.cpp
clang++ -Wall -Wextra unused.cpp
No warnings are produced about the unused exception parameter k.
k
You can use -Wunused-exception-parameter
-Wunused-exception-parameter
But not sure why -Wunused-exception-parameter is not of -Wall / -Wextra ...
-Wall
-Wextra
Extended Description
Compile with:
clang++ -Wall -Wextra unused.cpp
No warnings are produced about the unused exception parameter
k
.