[Devel] [PATCH vz10 07/15] selftests/memfd: remove unused variable 'sig' in fuse_test

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Mon Mar 30 11:25:58 MSK 2026


Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

On 3/23/26 9:31 PM, Konstantin Khorenko wrote:
>    fuse_test.c: In function 'sealing_thread_fn':
>    fuse_test.c:165:13: warning: unused variable 'sig' [-Wunused-variable]
>      165 |         int sig, r;
>          |             ^~~
>
> Remove unused 'sig' to fix -Wunused-variable warning.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-127529
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
>
> Feature: fix selftests
> ---
>   tools/testing/selftests/memfd/fuse_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c
> index dbc171a3806d..510056c1b0d0 100644
> --- a/tools/testing/selftests/memfd/fuse_test.c
> +++ b/tools/testing/selftests/memfd/fuse_test.c
> @@ -162,7 +162,7 @@ static void *global_p = NULL;
>   
>   static int sealing_thread_fn(void *arg)
>   {
> -	int sig, r;
> +	int r;
>   
>   	/*
>   	 * This thread first waits 200ms so any pending operation in the parent


More information about the Devel mailing list