From b1031d33258703e721c3e47f22a747020e1eb612 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Jul 2018 10:51:53 +0200 Subject: Suppress extra warnings (-Wno-extra) and treated them as errors (-Wno-error) --- libsqlite3/buildfile | 10 ++++++++++ 1 file changed, 10 insertions(+) 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). -- cgit v1.1