Created
March 11, 2013 19:07
-
-
Save mtrovilho/5136785 to your computer and use it in GitHub Desktop.
Suppress "perform selector may cause a leak" warning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown#answer-7933931 | |
#define SuppressPerformSelectorLeakWarning(Method) \ | |
do { \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ | |
Method; \ | |
_Pragma("clang diagnostic pop") \ | |
} while (0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment