How to disable new Xcode 4.6 warning for whole project ? “… used as the name of the previous parameter rather than as part of the selector"

孤街浪徒 提交于 2020-01-03 18:34:21

问题


I know how to fix it by inserting whitespace before : , but I have it know in bunch of files after upgrade and this is not important problem for me. I am searching for it in build settings but none seems to address this.

Thank You.


回答1:


So I found this for single file :

#pragma clang diagnostic ignored "-Wmissing-selector-name”

Name I got from here: https://github.com/eerolanguage/clang-trunk/blob/master/test/SemaObjC/warning-missing-selector-name.m

So I put it in precompiled header “Project.pch" and it works for my whole project, I am interested in nicer solution if possible, as user defined build setting for example. I tried it, but not found syntax that worked.



来源:https://stackoverflow.com/questions/14579197/how-to-disable-new-xcode-4-6-warning-for-whole-project-used-as-the-name-of

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