Created
September 27, 2012 06:36
-
-
Save Moligaloo/3792531 to your computer and use it in GitHub Desktop.
Suppress warnings for part of source code
This file contains 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 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