diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-26 16:47:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-26 16:48:34 +0300 |
commit | ac1aa82863e17c07c6b9916eb4c17624ab0f4fe4 (patch) | |
tree | 679464ad043c059e085cc58b67c213f8f3f30bad | |
parent | 743e0eebec9a1e7b2bf4ebd0ab4e190f5e587f2f (diff) |
Don't disable all warnings (-w) but disable treating them as errors
Disable only warnings that pop up with -Wall -Wextra, pass through the other
ones but disable treating them as errors (with -Wno-error).
-rw-r--r-- | mysql/buildfile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mysql/buildfile b/mysql/buildfile index 6e2ad5a..a1da0f4 100644 --- a/mysql/buildfile +++ b/mysql/buildfile @@ -204,13 +204,14 @@ elif ($c.class == 'gcc') # cc.coptions += -fno-omit-frame-pointer -fno-strict-aliasing - # Disable all warnings. 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). Note that we tried -Wno-all -Wno-extra but that wasn't - # sufficient. + # Disable warnings that pop up with -Wall -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). There are still some warnings left that + # appear for certain platforms/compilers. We pass them through but disable + # treating them as errors. # - cc.coptions += -w + cc.coptions += -Wno-all -Wno-extra -Wno-error } if ($tclass != 'windows') |