diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-03 10:51:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-03 10:51:53 +0200 |
commit | b1031d33258703e721c3e47f22a747020e1eb612 (patch) | |
tree | a05f0c9eed7ded7bf86642481b9d09a51b2696cd /libsqlite3/buildfile | |
parent | 63916698b7ffcc5848a31cce84b8949d667c2bec (diff) |
Suppress extra warnings (-Wno-extra) and treated them as errors (-Wno-error)
Diffstat (limited to 'libsqlite3/buildfile')
-rw-r--r-- | libsqlite3/buildfile | 10 |
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). |