How to eliminate external lib/third party warnings in GCC [duplicate]
This question already has an answer here: How to suppress GCC warnings from library headers? 9 answers In the software project I'm working on, we use certain 3rd party libraries which, sadly, produce annoying gcc warnings. We are striving to clean all code of warnings, and want to enable the treat-warnings-as-errors (-Werror) flag in GCC. Is there a way to make these 3rd party generated warnings, which we cannot fix, to disappear? Dummy00001 I presume you are talking about the warnings coming from the 3rd party library headers. The GCC specific solution would be to create another wrapper