Reputation: 18542
It's a part of larger code base, which forces -Werror on gcc. This warning is generated in a third party code that shouldn't be changed (and I actually know how to fix it), but I can disable specific warnings. This time man gcc failed me, so please, let some gcc master enlighten me. TIA.
Upvotes: 0
Views: 1628
Reputation: 64404
If you use -fdiagnostics-show-option, GCC will tell you how to disable a warning (if possible).
Upvotes: 5
Reputation: 27766
It is the -Wno-unused-value option, see the documentation
Upvotes: 6
Reputation: 28874
Have you tried using a diagnostic pragma directive? These are available in gcc 4.2.1+, I believe.
Upvotes: 0