[libvirt PATCH 0/6] meson: sanitize our compiler flags handling

Daniel P. Berrangé posted 6 patches 3 years ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210408105823.462584-1-berrange@redhat.com
meson.build | 312 ++++++++++++++++++----------------------------------
1 file changed, 104 insertions(+), 208 deletions(-)
[libvirt PATCH 0/6] meson: sanitize our compiler flags handling
Posted by Daniel P. Berrangé 3 years ago
Currently our compiler flags handling has a number of flaws and
misleading characteristics

 - It triggers warnings from Meson due to our use of -Wall/-Wextra
   that prevents us using --fatal-meson-warnings

 - We enable flags, only to turn them back off again eg
      "-Wcast-function-type ...  -Wno-cast-function-type"

 - We check for certain flags twice

 - We don't check compiler support for some flags

Daniel P. Berrangé (6):
  meson: get rid of list of unused warning flags
  meson: actually check for -Wframe-larger-than
  meson: merge all cc_flags arrays into one
  meson: avoid checking compiler flags twice
  meson: honour meson warning_level option
  meson: don't probe for -Werror if -Dwerror is enabled

 meson.build | 312 ++++++++++++++++++----------------------------------
 1 file changed, 104 insertions(+), 208 deletions(-)

-- 
2.30.2