Reputation: 18637
I'm debugging a large code with the flags -Wall
and -Wextra
, but I'm getting hundreds of Unused parameter
warnings which I'm not interested in. Is there a way to suppress only these warnings?
Upvotes: 0
Views: 1532
Reputation: 18098
Simply append -Wno-unused-parameter
... See here for details.
From the docs:
Each of these specific warning options also has a negative form beginning -Wno- to turn off warnings; for example, -Wno-implicit.
Upvotes: 2