diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-26 16:53:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-26 17:08:06 +0300 |
commit | f1a7e95fb8cbd74fe99649c3c80aa637ac9a6123 (patch) | |
tree | 3cdc60f3948c811b6205aa1e895ede745018d8a9 /mysql/buildfile | |
parent | 8bec732598e32ff0480f4d44258a4286f1c41019 (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).
Diffstat (limited to 'mysql/buildfile')
-rw-r--r-- | mysql/buildfile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mysql/buildfile b/mysql/buildfile index 8017d20..cf4216f 100644 --- a/mysql/buildfile +++ b/mysql/buildfile @@ -192,13 +192,14 @@ if ($c.class == 'msvc') } elif ($c.class == 'gcc') { - # 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. # - c.coptions += -w + c.coptions += -Wno-all -Wno-extra -Wno-error } if ($tclass != 'windows') |