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

Dylan Baker dylan at pnwbakers.com
Tue Nov 20 17:16:04 UTC 2018


Quoting Eric Engestrom (2018-11-20 04:36:23)
> 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
> 

for this patch,
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181120/769151c8/attachment.sig>


More information about the mesa-dev mailing list