subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1845212 - /subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c
Date Tue, 30 Oct 2018 10:12:51 GMT
Author: brane
Date: Tue Oct 30 10:12:51 2018
New Revision: 1845212

URL: http://svn.apache.org/viewvc?rev=1845212&view=rev
Log:
Silence a deprecation warning from amalgamated SQLite on macOS.

* subversion/libsvn_subr/sqlite3wrapper.c: Ignore -Wdeprecated-declarations.

Modified:
    subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c

Modified: subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c?rev=1845212&r1=1845211&r2=1845212&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c (original)
+++ subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c Tue Oct 30 10:12:51 2018
@@ -41,6 +41,12 @@
 #    endif
 #  endif
 #  ifdef __APPLE__
+     /* SQLite uses OSAtomicCompareAndSwapPtrBarrier from libkern/OSAtomic.h,
+        which has been deprecated since macOS 10.12. This will silence the
+        warning. */
+#    if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+#      pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#    endif
 #    include <Availability.h>
 #    if __MAC_OS_X_VERSION_MIN_REQUIRED < 1060
        /* <libkern/OSAtomic.h> is included on OS X by sqlite3.c, and



Mime
View raw message