[Mesa-dev] [PATCH mesa 2/2] meson: make passing an invalid pointer a hard error

Eric Engestrom eric.engestrom at intel.com
Tue Nov 20 12:36:23 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meson.build b/meson.build
index fde1cb3b34440f27c6c5..780dbc77ee0ad6f259cb 100644
--- a/meson.build
+++ b/meson.build
@@ -788,6 +788,7 @@ endif
 c_args = []
 foreach a : ['-Werror=implicit-function-declaration',
              '-Werror=missing-prototypes', '-Werror=return-type',
+             '-Werror=incompatible-pointer-types',
              '-fno-math-errno',
              '-fno-trapping-math', '-Qunused-arguments']
   if cc.has_argument(a)
@@ -809,6 +810,7 @@ endif
 # Check for generic C++ arguments
 cpp_args = []
 foreach a : ['-Werror=return-type',
+             '-Werror=incompatible-pointer-types',
              '-fno-math-errno', '-fno-trapping-math',
              '-Qunused-arguments']
   if cpp.has_argument(a)
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list