How to suppress warnings in Xcode?

In Xcode 5, is there a way to suppress warnings, such as unused variables for the number of files? In particular, the latest version of Box2D 2.2.1 gives some warnings that are annoying but harmless.

+4
compiler-construction ios compiler-warnings xcode xcode5
source share
2 answers

Select a project in the navigator, then select a target from the list. Click the Build Phases tab, then expand the Compilation Sources phase. In the Compiler Flags column, you specify the compiler flags for each file. Type -Wno- to cancel the warning. for example: -Wno-unused-parameter

+11
source share

You can add the -w compiler flag for each affected .m file that you want to disable during the build steps for the target application in the Compile Sources section.

+19
source share

All Articles