aboutsummaryrefslogtreecommitdiffstats
path: root/subversion/libsvn_subr/sqlite3wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_subr/sqlite3wrapper.c')
-rw-r--r--subversion/libsvn_subr/sqlite3wrapper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/subversion/libsvn_subr/sqlite3wrapper.c b/subversion/libsvn_subr/sqlite3wrapper.c
index 95e42d138268..ea090fe63633 100644
--- a/subversion/libsvn_subr/sqlite3wrapper.c
+++ b/subversion/libsvn_subr/sqlite3wrapper.c
@@ -25,6 +25,8 @@
/* Include sqlite3 inline, making all symbols private. */
#ifdef SVN_SQLITE_INLINE
# define SQLITE_OMIT_DEPRECATED 1
+# define SQLITE_DEFAULT_MEMSTATUS 0
+# define SQLITE_OMIT_WAL 1
# define SQLITE_API static
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
# pragma GCC diagnostic ignored "-Wunreachable-code"
@@ -41,6 +43,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