Mesa (master): meson: Enable -Werror=int-conversion.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 2 13:20:22 UTC 2020


Module: Mesa
Branch: master
Commit: c1a1a86658303083d33e70c6b0c1b3317bdd8d20
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1a1a86658303083d33e70c6b0c1b3317bdd8d20

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Thu Oct 31 12:00:52 2019 +0100

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 <eric.engestrom at intel.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at 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 | 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',




More information about the mesa-commit mailing list