Skip to content

Instantly share code, notes, and snippets.

@Moligaloo
Created September 27, 2012 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Moligaloo/3792531 to your computer and use it in GitHub Desktop.
Save Moligaloo/3792531 to your computer and use it in GitHub Desktop.
Suppress warnings for part of source code
#pragma GCC push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
static ABAddressBookRef CreateAddressBook(){
if (ABAddressBookCreateWithOptions != NULL) {
return ABAddressBookCreateWithOptions(NULL, NULL);
}else{
return ABAddressBookCreate();
}
}
#pragma GCC pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment