[libcamera-devel] [PATCH 1/2] meson: Enable Wunused-parameter to catch unused parameters

Hirokazu Honda hiroh at chromium.org
Thu Aug 5 10:45:48 CEST 2021


Hi Uman, thank you for the patch.

On Thu, Aug 5, 2021 at 5:36 PM Umang Jain <umang.jain at ideasonboard.com> wrote:
>
> Functions paramters either needs to be used or marked with
> [[maybe_unused]]. Neither of them should be flagged during
> compilation.
>
> Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>

Reviewed-by: Hirokazu Honda <hiroh at chromium.org>
> ---
>  meson.build | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meson.build b/meson.build
> index a49c484f..e555034b 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -43,6 +43,7 @@ endif
>
>  common_arguments = [
>      '-Wshadow',
> +    '-Wunused-parameter',
>      '-include', 'config.h',
>  ]
>
> --
> 2.31.0
>


More information about the libcamera-devel mailing list