From: Bas Nieuwenhuizen Date: Thu, 31 Oct 2019 11:00:52 +0000 (+0100) Subject: meson: Enable -Werror=int-conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1a1a86658303083d33e70c6b0c1b3317bdd8d20;p=mesa.git meson: Enable -Werror=int-conversion. I think implicit conversions here are almost always wrong: 1) wrong argument position ptr vs. int 2) will often have issues with 32-bit platforms. Reviewed-by: Eric Engestrom Reviewed-by: Dylan Baker Reviewed-by: Kristian H. Kristensen Tested-by: Marge Bot Part-of: --- diff --git a/meson.build b/meson.build index 5b488313309..35cd2e6f632 100644 --- a/meson.build +++ b/meson.build @@ -951,6 +951,7 @@ else '-Werror=return-type', '-Werror=empty-body', '-Werror=incompatible-pointer-types', + '-Werror=int-conversion', '-Wno-missing-field-initializers', '-Wno-format-truncation', '-fno-math-errno',