summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 14:35:03 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 14:35:03 -0400
commit24329329e799f9fc83b6a3f8106b6fb9651ec716 (patch)
tree178872d380e4ebf077b632d4dfcbca7833d878f5
parent21de485738381f5e326b92a14c9c5c96f0462a0c (diff)
remove warning about unused variable
-rw-r--r--signal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index c109645..4e0d9be 100644
--- a/signal.c
+++ b/signal.c
@@ -3,7 +3,7 @@
void test_signal_h(void)
{
- sig_atomic_t sig_atomic;
+ sig_atomic_t sig_atomic = 0;
int signals[] = {
SIGABRT,
@@ -14,6 +14,8 @@ void test_signal_h(void)
SIGTERM,
};
+ (void)sig_atomic;
+
testing_header("signal.h");
test_distinct(signals);