Reputation: 14334
I know about the "treat warnings as errors" option in the build settings, but is there any way to set this for specific warnings only, or just for the "may not responds to selector X" ones?
Upvotes: 3
Views: 434
Reputation: 747
following the link that Tejaswi supplied, i added this to the file and it generated an error instead of a warning:
#pragma GCC diagnostic error "-Wobjc-method-access"
by the way, getting the warning string for any warning you see in xcode can be done by clicking "reveal in log" for the warning. at the end of the log line for the warning will be the warning string in brackets.
Upvotes: 1
Reputation: 9157
Hmm, interesting, was Googling around and found this, if it helps - Selectively disable GCC warnings for only part of a translation unit?
Upvotes: 2