Luca Bartoletti
Luca Bartoletti

Reputation: 2447

Turn off warnings coming from subprojects

Can someone help me to turn off warnings in Xcode 4 that I'm getting from subprojects?

I have three subprojects, with a lot of warnings. The subprojects are provide by my customer's R&D studio. I would like to turn off the warnings there, to put all my efforts and attention on warnings in my own code.

This the xcode warning counter now

Is this possibile in Xcode 4?

Upvotes: 24

Views: 8092

Answers (3)

Johnnywho
Johnnywho

Reputation: 5539

If you're using Xcode 4.2 or later, you can use LLVM compiler setting Inhibit All Warnings in Warning Polices for every subproject you have:

enter image description here

Upvotes: 58

Shai Mishali
Shai Mishali

Reputation: 9402

If the library isn't too big, You could disable warnings on a per-file basis using

#pragma GCC diagnostic ignored "-Wwarning-flag"

Upvotes: 0

Matthias
Matthias

Reputation: 8180

A partial solution only:

If your subprojects build libraries or bundles that do not have to recompile at every run, you can activate the "recent filer" (see figure, blue clock). Then, only warnings and errors from the last compiler run are displayed.

recent filter

Upvotes: 2

Related Questions