I’m curious if there is an option to disable gcc warnings about a parameter not being valid for the language being compiled.
Ex:
cc1: warning: command line option "-Wno-deprecated" is valid for C++/Java/ObjC++ but not for C
Our build system passes the warnings we have decided on globally across a build.
We have both C/C++ code and the warnings get real annoying when trying to find actual warnings.
Any suggestions?
It seems to me that if there were such an option, there would have to be a further option to turn off warnings about that option, and so on infinitely. So I suspect there isn’t.
Having the same options for builds of completely different languages seems a bit odd anyway – I would have different options defined as makefile macros and used appropriately for different targets.