aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-03-12 17:41:20 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-03-12 19:51:56 -0400
commit535498d3678aed5b5ec5f2cf5c2b63bc977e50eb (patch)
tree017a69b5dbac43d94372665dd9ecf16f4852ecf9
parent58e6fb40f6b12ec89ff5faa0ad0d14f2835a5a25 (diff)
downloadmeson-535498d3678aed5b5ec5f2cf5c2b63bc977e50eb.zip
meson-535498d3678aed5b5ec5f2cf5c2b63bc977e50eb.tar.gz
meson-535498d3678aed5b5ec5f2cf5c2b63bc977e50eb.tar.bz2
Fix warning_level=everything with GCC 8
This option was introduced with GCC 8.1.0 as in the original commit, but the value wasn't right initially and was volatile during the 8 series. To avoid this, this commit moves the warning to 9.1.0 (the next version we generally care about), since we don't want to get too deep into the weeds of point releases, and a warning not being used yet in some particular version of GCC isn't a big deal.
-rw-r--r--mesonbuild/compilers/mixins/gnu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
index 022e7fd..cba19c5 100644
--- a/mesonbuild/compilers/mixins/gnu.py
+++ b/mesonbuild/compilers/mixins/gnu.py
@@ -196,11 +196,13 @@ gnu_common_warning_args = {
"-Wduplicated-branches",
],
"8.1.0": [
- "-Wattribute-alias=2",
"-Wcast-align=strict",
"-Wsuggest-attribute=cold",
"-Wsuggest-attribute=malloc",
],
+ "9.1.0": [
+ "-Wattribute-alias=2",
+ ],
"10.1.0": [
"-Wanalyzer-too-complex",
"-Warith-conversion",