Clang (in Xcode): start with -Weverything and manually disable particular warnings Clang (in Xcode): start with -Weverything and manually disable particular warnings xcode xcode

Clang (in Xcode): start with -Weverything and manually disable particular warnings


You can disable individual warnings using -Wno-XYZ, XYZ being the name of the warning feature to be disabled.


XCode

In XCode 5 I had to build, then right click on an issue and select "Reveal in Log" then set the Middle Pane tab to "All" too get the issues displayed in the log.

Then clicking on the "Hamburger" Icon to the right and scrolling down I finally got an exact description of the Warning.

/.../SettingsViewController.m:91:58: warning: creating selector for nonexistent method 'setSegueIdentifier:' [-Wselector]    [segue.destinationViewController performSelector:@selector(setSegueIdentifier:)

So in my case the following does the job.

#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wselector"...#pragma clang diagnostic pop


I just bumped into a site that lists all Clang warnings and the flags that disable them (using #pragma clang diagnostic ignored "-Wxyz"):

http://goo.gl/hwwIUa (when you visit it you'll understand why I've shortened the URL).