Created
October 12, 2014 03:14
-
-
Save onmyway133/1e00fa80bd1d5d65209c to your computer and use it in GitHub Desktop.
SUPPRESS_PERFORM_SELECTOR_LEAK_WARNING
This file contains hidden or 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
#define SUPPRESS_PERFORM_SELECTOR_LEAK_WARNING(code) \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ | |
code; \ | |
_Pragma("clang diagnostic pop") \ | |
#define SUPPRESS_UNDECLARED_SELECTOR_LEAK_WARNING(code) \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic ignored \"-Wundeclared-selector\"") \ | |
code; \ | |
_Pragma("clang diagnostic pop") \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment