Skip to content

Instantly share code, notes, and snippets.

@wilmarvh
Forked from simonwhitaker/snippet.m
Created February 20, 2014 21:09
Show Gist options
  • Save wilmarvh/9123239 to your computer and use it in GitHub Desktop.
Save wilmarvh/9123239 to your computer and use it in GitHub Desktop.
#ifdef TESTING
/*
Disable deprecated-declarations warning.
See http://clang.llvm.org/docs/UsersManual.html#diagnostics_pragmas
Basic workflow:
1. push current warnings onto stack
2. ignore warning we know will get thrown
3. do dodgy thing that causes warning
4. pop warnings - go back to what we had before we started fiddling with them
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
#pragma clang diagnostic pop
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment