summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-07 14:08:43 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-07 14:08:43 (GMT)
commitbc71ba46bc23f9ae747936df9faa6cddd7598277 (patch)
tree0e314371ff6a8036268647b1e61b24894411919f
parentc2df7ba7e76dd119c7265aed2a296040e9871828 (diff)
Suppress '_ReadWriteBarrier is deprecated' warning issued by Clang on Windows
-rw-r--r--libsqlite3/libsqlite3/buildfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libsqlite3/libsqlite3/buildfile b/libsqlite3/libsqlite3/buildfile
index a9ff21c..c915442 100644
--- a/libsqlite3/libsqlite3/buildfile
+++ b/libsqlite3/libsqlite3/buildfile
@@ -8,7 +8,8 @@ tclass = $c.target.class
bsd = ($tclass == 'bsd')
windows = ($tclass == 'windows')
-gcc = ($c.class == 'gcc')
+gcc = ($c.class == 'gcc')
+clang_msvc = ($c.id == 'clang' && $c.target.system == 'win32-msvc')
# Build options.
#
@@ -83,6 +84,9 @@ if! $windows
if $gcc
c.coptions += -fno-strict-aliasing
+if $clang_msvc
+ c.coptions += -Wno-deprecated-declarations
+
# Disable warnings that pop up with -Wextra. Upstream doesn't seem to care
# about these and it is not easy to disable specific warnings in a way that
# works across compilers/version (some -Wno-* options are only recognized in