Skip to content

Commit

Permalink
Remove GCC's -Wunsuffixed-float-constants from warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drobilla authored and eli-schwartz committed Jan 20, 2025
1 parent 73c52dd commit 373d1fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mesonbuild/compilers/mixins/gnu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -217,9 +218,6 @@
"4.1.0": [
"-Wc++-compat",
],
"4.5.0": [
"-Wunsuffixed-float-constants",
],
}

# GCC warnings for C++
Expand Down

0 comments on commit 373d1fe

Please sign in to comment.