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