Skip to content

Instantly share code, notes, and snippets.

@jessecurry
Created June 19, 2013 18:07
Show Gist options
  • Save jessecurry/5816464 to your computer and use it in GitHub Desktop.
Save jessecurry/5816464 to your computer and use it in GitHub Desktop.
Prevent the ARC retain cycle warning when using NSAssert.
#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