Turn off warnings coming from subprojects

别来无恙 提交于 2019-12-03 10:53:48

问题


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.

Is this possibile in Xcode 4?


回答1:


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:




回答2:


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.




回答3:


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

#pragma GCC diagnostic ignored "-Wwarning-flag"


来源:https://stackoverflow.com/questions/11841479/turn-off-warnings-coming-from-subprojects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!