From c1a1a86658303083d33e70c6b0c1b3317bdd8d20 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 31 Oct 2019 12:00:52 +0100 Subject: [PATCH] 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: --- meson.build | 1 + 1 file changed, 1 insertion(+) 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', -- 2.30.2