diff options
authorBoris Kolpackov <>2018-07-03 10:51:53 +0200
committerBoris Kolpackov <>2018-07-03 10:51:53 +0200
commitb1031d33258703e721c3e47f22a747020e1eb612 (patch)
parent63916698b7ffcc5848a31cce84b8949d667c2bec (diff)
Suppress extra warnings (-Wno-extra) and treated them as errors (-Wno-error)
1 files changed, 10 insertions, 0 deletions
diff --git a/libsqlite3/buildfile b/libsqlite3/buildfile
index 074713f..707f307 100644
--- a/libsqlite3/buildfile
+++ b/libsqlite3/buildfile
@@ -67,6 +67,16 @@ if ($ != "windows")
if ($c.class == 'gcc')
c.coptions += -fno-strict-aliasing
+# 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
+# newer versions). Some warnings may still appear for certain (newer)
+# platforms/compilers. We pass them through but disable treating them as
+# errors.
+if ($c.class == 'gcc')
+ c.coptions += -Wno-extra -Wno-error
# It would have been cleaner to handle this in a header but that will require
# modifying sqlite3.h. Note that this is also sub-optimal if we are not using
# an export stub (no dllimport).