mirror of
https://github.com/mii443/qemu.git
synced 2025-12-05 20:18:24 +00:00
linux-user/syscall: Remove unused variable from execve
From clang-13:
linux-user/syscall.c:8503:17: error: variable 'total_size' set but not used \
[-Werror,-Wunused-but-set-variable]
Acked-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -8364,7 +8364,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
|
|||||||
abi_ulong guest_envp;
|
abi_ulong guest_envp;
|
||||||
abi_ulong addr;
|
abi_ulong addr;
|
||||||
char **q;
|
char **q;
|
||||||
int total_size = 0;
|
|
||||||
|
|
||||||
argc = 0;
|
argc = 0;
|
||||||
guest_argp = arg2;
|
guest_argp = arg2;
|
||||||
@@ -8396,7 +8395,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
|
|||||||
break;
|
break;
|
||||||
if (!(*q = lock_user_string(addr)))
|
if (!(*q = lock_user_string(addr)))
|
||||||
goto execve_efault;
|
goto execve_efault;
|
||||||
total_size += strlen(*q) + 1;
|
|
||||||
}
|
}
|
||||||
*q = NULL;
|
*q = NULL;
|
||||||
|
|
||||||
@@ -8408,7 +8406,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
|
|||||||
break;
|
break;
|
||||||
if (!(*q = lock_user_string(addr)))
|
if (!(*q = lock_user_string(addr)))
|
||||||
goto execve_efault;
|
goto execve_efault;
|
||||||
total_size += strlen(*q) + 1;
|
|
||||||
}
|
}
|
||||||
*q = NULL;
|
*q = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user