Skip to content

Instantly share code, notes, and snippets.

@mkuliszkiewicz
Created August 8, 2013 21:03
Show Gist options
  • Save mkuliszkiewicz/6188705 to your computer and use it in GitHub Desktop.
Save mkuliszkiewicz/6188705 to your computer and use it in GitHub Desktop.
// This goes in some global header, let it be *.pch
#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
// And then in any method you just call this function
SuppressPerformSelectorLeakWarning(
..
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment