Created
June 19, 2013 18:07
-
-
Save jessecurry/5816464 to your computer and use it in GitHub Desktop.
Prevent the ARC retain cycle warning when using NSAssert.
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
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Warc-retain-cycles" | |
NSAssert(FALSE, @"NSAssert uses self, which will cause a retain cycle warning under ARC"); | |
#pragma clang diagnostic pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment