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

2012-04-07 Thread Kevin Cernekee
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 cerne...@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

___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


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

2012-04-07 Thread Mike Frysinger
On Saturday 07 April 2012 16:31:27 Kevin Cernekee wrote:
 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

the tests that we import from glibc i'd rather not modify

we build the rest of the tree with -std=gnu99, so sounds like the test subdir 
needs that update too
-mike


signature.asc
Description: This is a digitally signed message part.
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc