[Pixman] [PATCH] test: Fix compiler warnings caused by unused code

Stefan Weil sw at weilnetz.de
Tue Nov 13 10:44:44 PST 2012


Signed-off-by: Stefan Weil <sw at weilnetz.de>
---
 test/utils.c |    4 ++++
 1 file changed, 4 insertions(+)

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)
-- 
1.7.10.4



More information about the Pixman mailing list