[PATCH 3/8] test/signal: Fix compile warning in tst-sigset

Kevin Cernekee cernekee at gmail.com
Sat Apr 7 20:31:27 UTC 2012


Move up the variable declaration, to fix this:

tst-sigset.c: In function 'do_test':
tst-sigset.c:28:3: warning: ISO C90 forbids mixed declarations and code

Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
 test/signal/tst-sigset.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/signal/tst-sigset.c b/test/signal/tst-sigset.c
index bc1b057..bfbab77 100644
--- a/test/signal/tst-sigset.c
+++ b/test/signal/tst-sigset.c
@@ -21,15 +21,15 @@ do_test (void)
   else
 
 
-  sigset_t set;
-  TRY (sigemptyset (&set) != 0);
-
 #ifdef SIGRTMAX
   int max_sig = SIGRTMAX;
 #else
   int max_sig = NSIG - 1;
 #endif
 
+  sigset_t set;
+  TRY (sigemptyset (&set) != 0);
+
   for (sig = 1; sig <= max_sig; ++sig)
     {
       TRY (sigismember (&set, sig) != 0);
-- 
1.7.8.3



More information about the uClibc mailing list