diff mbox series

[5/8] selftests: x86: syscall_arg_fault_32: remove unused variable

Message ID 20240501122918.3831734-6-usama.anjum@collabora.com
State New
Headers show
Series selftests: x86: build suite with clang | expand

Commit Message

Muhammad Usama Anjum May 1, 2024, 12:29 p.m. UTC
Remove unused global variable.

syscall_arg_fault.c:32:30: warning: unused variable 'sig_traps' [-Wunused-variable]
   32 | static volatile sig_atomic_t sig_traps;

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
 tools/testing/selftests/x86/syscall_arg_fault.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/testing/selftests/x86/syscall_arg_fault.c b/tools/testing/selftests/x86/syscall_arg_fault.c
index 461fa41a4d02a..48ab065a76f9b 100644
--- a/tools/testing/selftests/x86/syscall_arg_fault.c
+++ b/tools/testing/selftests/x86/syscall_arg_fault.c
@@ -29,7 +29,6 @@  static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *),
 		err(1, "sigaction");
 }
 
-static volatile sig_atomic_t sig_traps;
 static sigjmp_buf jmpbuf;
 
 static volatile sig_atomic_t n_errs;