Can I have different warning levels for different folders in Xcode?

I will compile Xcode projects with very high alert settings. Sometimes I have to use third-party structures that propagate as a source (and not as a structure). This framework often causes a lot of warnings.

Is there a way to disable warnings for these folders? I want a more stringent level for my own code, but don't care if third-party code violates my warning level.

Basically, I don't want to see 67 warnings every time I build.

+4
source share
1 answer

You are looking for the following:

#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

Flags can be found here: http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Warning-Options.html

Just replace -W ... with whatever you want to ignore.

+2
source

All Articles