summaryrefslogtreecommitdiff
path: root/libsqlite3/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libsqlite3/buildfile')
-rw-r--r--libsqlite3/buildfile10
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 ($c.target.class != "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).