meson: Enable -Werror=int-conversion.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 Oct 2019 11:00:52 +0000 (12:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jan 2020 11:47:02 +0000 (11:47 +0000)
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 <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2570>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2570>

meson.build

index 5b4883133098d6a41de76c67d1167c4e5d8423f9..35cd2e6f632770b8e1c9c1f98a6821bde876ff5e 100644 (file)
@@ -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',