Skip to content

Instantly share code, notes, and snippets.

@onmyway133
Created October 12, 2014 03:14
Show Gist options
  • Save onmyway133/1e00fa80bd1d5d65209c to your computer and use it in GitHub Desktop.
Save onmyway133/1e00fa80bd1d5d65209c to your computer and use it in GitHub Desktop.
SUPPRESS_PERFORM_SELECTOR_LEAK_WARNING
#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