[V2 i-g-t] meson: Turn on few warns
Kamil Konieczny
kamil.konieczny at linux.intel.com
Thu May 9 14:35:06 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.
>
> V2: Drop unused-variable
>
> 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>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.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',
> '-Werror=int-to-pointer-cast',
> '-Werror=main',
> '-Werror=missing-braces',
> --
> 2.43.2
>
More information about the igt-dev
mailing list