From 17679f331403b2d9af84bb4d107bc0ae1f3373f3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 25 Sep 2020 14:24:55 -0400 Subject: move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables --- signal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'signal.c') diff --git a/signal.c b/signal.c index 4e0d9be..d2c96e2 100644 --- a/signal.c +++ b/signal.c @@ -1,10 +1,10 @@ #include #include "test.h" +sig_atomic_t test_sig_atomic = 0; + void test_signal_h(void) { - sig_atomic_t sig_atomic = 0; - int signals[] = { SIGABRT, SIGFPE, @@ -14,8 +14,6 @@ void test_signal_h(void) SIGTERM, }; - (void)sig_atomic; - testing_header("signal.h"); test_distinct(signals); -- cgit v1.2.1