[V2 i-g-t] meson: Turn on few warns

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Mar 26 17:48:14 UTC 2024


Hi Bhanuprakash,
On 2024-03-26 at 15:56:12 +0530, Bhanuprakash Modem wrote:
> dangling-pointer:
>     Warn usage of pointers to objects after their lifetime has ended.
> int-conversion:
>     Warn about incompatible integer to pointer and pointer to
>     integer conversions.

Bernd, could you check if with this igt compiles without problems
with musl libs on Yocto?

> 
> V2: Drop unused-variable
> 

Adding Bernd to Cc.

> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Cc: Petri Latvala <adrinael at adrinael.net>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
>  meson.build | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meson.build b/meson.build
> index cee8a7446..223a09853 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -57,8 +57,10 @@ cc_args = [
>  
>  	'-Werror=address',
>  	'-Werror=array-bounds',
> +	'-Werror=dangling-pointer',
>  	'-Werror=implicit',
>  	'-Werror=init-self',
> +	'-Werror=int-conversion',

Looks ok, I will wait for feedback from other devs.

Regards,
Kamil

>  	'-Werror=int-to-pointer-cast',
>  	'-Werror=main',
>  	'-Werror=missing-braces',
> -- 
> 2.43.2
> 


More information about the igt-dev mailing list