From 1d19bc09ef223657d0b055ea0059ee7797d7f9ed Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jan 2025 13:35:19 -0500 Subject: [PATCH] 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. --- mesonbuild/compilers/mixins/gnu.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index 66b01ef512e1..b974474fa953 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -203,6 +203,7 @@ # -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 @@ "4.1.0": [ "-Wc++-compat", ], - "4.5.0": [ - "-Wunsuffixed-float-constants", - ], } # GCC warnings for C++