How to disable a new Xcode 4.6 warning for an entire project? "... used as the name of the previous parameter, not as part of the selector"

I know how to fix this by inserting a space before :, but I know that there are a bunch of files after the update, and this is not an important issue for me. I am looking for it in the build settings, but no one seems to address this.

Thanks.

+4
source share
1 answer

So, I found this for a single file:

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

The 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 the precompiled header "Project.pch" and it works for my entire project, and I'm interested in a nicer solution, if possible, as a custom build setting, for example. I tried, but did not find the syntax that worked.

+7
source

All Articles