Turn off warnings coming from subprojects

后端 未结 3 1598
野性不改
野性不改 2021-02-05 04:46

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

相关标签:
3条回答
  • 2021-02-05 05:15

    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

    0 讨论(0)
  • 2021-02-05 05:20

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

    #pragma GCC diagnostic ignored "-Wwarning-flag"
    
    0 讨论(0)
  • 2021-02-05 05:37

    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

    0 讨论(0)
提交回复
热议问题