summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-18 13:35:19 -0500
committerEli Schwartz <eschwartz93@gmail.com>2025-01-20 17:53:16 -0500
commit373d1fe668fa59169ec46dda236c72744c62511f (patch)
tree68320b48449a553f44c209952a5498d31fd3d822
parent73c52ddcd901e03092a70d04a548b5a74c6781f4 (diff)
downloadmeson-373d1fe668fa59169ec46dda236c72744c62511f.tar.gz
Remove GCC's -Wunsuffixed-float-constants from warnings
This inclusion was a misunderstanding on my part: this warning isn't generally applicable to standard C (it prevents using double literals whatsoever since C doesn't have a suffix for them), but exists to support a GNU C extension. It also has no counterpart in clang. So, remove it, since warning_level=everything doesn't include such things.
-rw-r--r--mesonbuild/compilers/mixins/gnu.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
index 66b01ef51..b974474fa 100644
--- a/mesonbuild/compilers/mixins/gnu.py
+++ b/mesonbuild/compilers/mixins/gnu.py
@@ -203,6 +203,7 @@ gnu_common_warning_args: T.Dict[str, T.List[str]] = {
# -Wdeclaration-after-statement
# -Wtraditional
# -Wtraditional-conversion
+# -Wunsuffixed-float-constants
gnu_c_warning_args: T.Dict[str, T.List[str]] = {
"0.0.0": [
"-Wbad-function-cast",
@@ -217,9 +218,6 @@ gnu_c_warning_args: T.Dict[str, T.List[str]] = {
"4.1.0": [
"-Wc++-compat",
],
- "4.5.0": [
- "-Wunsuffixed-float-constants",
- ],
}
# GCC warnings for C++