diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-09-25 14:24:55 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-09-25 14:24:55 -0400 |
commit | 17679f331403b2d9af84bb4d107bc0ae1f3373f3 (patch) | |
tree | d47fe3a08bfc5ade912a35642e9a830dc8f28eee /signal.c | |
parent | 6a2d72af1ac550f5050eeac0be25734c206b9512 (diff) |
move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,10 +1,10 @@ #include <signal.h> #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); |