c++ - How to suppress specific warnings in g++ -


I want to stop specific warnings from G ++ about the -wno-xxx flag I know, but I'm looking for something more special. I do not want some of the warning in -Weffc ++ , but all should not be something that you can do with a lint - specific messages Can be disabled.

Is there a way to do this in GCC? Do I have to write a cover script?

Unfortunately, this feature is not provided by G ++ in VC ++, You can use to disable specific warnings. In GCC, you can have the closest, which allows you to enable / disable specific types of diagnosis for certain files or projects.


Comments