Skip to content

Commit

Permalink
Bug 1549847 - Do not treat warnings as errors on iOS. r=KevinJacobs,jcj
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D30270

--HG--
extra : moz-landing-system : lando
  • Loading branch information
eoger committed May 8, 2019
1 parent 144dacc commit 003769f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/sqlite/sqlite3.c
Expand Up @@ -18397,8 +18397,15 @@ static int sqlite3MemInit(void *NotUsed){
malloc_zone_t* newzone = malloc_create_zone(4096, 0);
malloc_set_zone_name(newzone, "Sqlite_Heap");
do{
#ifdef DARWIN // On iOS gyp build fails because of -Werror.
#pragma clang diagnostic push
#pragma clang diagnostic warning "-Wdeprecated-declarations"
#endif
success = OSAtomicCompareAndSwapPtrBarrier(NULL, newzone,
(void * volatile *)&_sqliteZone_);
#ifdef DARWIN
#pragma clang diagnostic pop
#endif
}while(!_sqliteZone_);
if( !success ){
/* somebody registered a zone first */
Expand Down Expand Up @@ -26957,7 +26964,14 @@ SQLITE_PRIVATE const char *sqlite3OpcodeName(int i){
&& (!defined(TARGET_IPHONE_SIMULATOR) || (TARGET_IPHONE_SIMULATOR==0))
# define HAVE_GETHOSTUUID 1
# else
# ifdef DARWIN // On iOS gyp build fails because of -Werror.
# pragma clang diagnostic push
# pragma clang diagnostic warning "-W#warnings"
# endif
# warning "gethostuuid() is disabled."
# ifdef DARWIN
# pragma clang diagnostic pop
# endif
# endif
#endif

Expand Down

0 comments on commit 003769f

Please sign in to comment.