summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-11-13 19:44:44 +0100
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-11-14 18:02:14 -0500
commit44dd746bb68625b2f6be77c3f80292b45defe9d7 (patch)
treeca5dd4343b8ef6ac2623fa147249aa569553e50f
parent5f96022d3bca15050958512f1c15a0067d2225af (diff)
test: Fix compiler warnings caused by unused code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--test/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/utils.c b/test/utils.c
index ef0a171..c887a6d 100644
--- a/test/utils.c
+++ b/test/utils.c
@@ -694,6 +694,8 @@ get_random_seed (void)
return lcg_rand_u32 ();
}
+#ifdef HAVE_SIGACTION
+#ifdef HAVE_ALARM
static const char *global_msg;
static void
@@ -702,6 +704,8 @@ on_alarm (int signo)
printf ("%s\n", global_msg);
exit (1);
}
+#endif
+#endif
void
fail_after (int seconds, const char *msg)