summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-12-17 20:50:01 -0800
committerKeith Packard <keithp@keithp.com>2014-12-19 18:16:15 -0800
commitbebcac0cf790b220e849e8905139d0744a606928 (patch)
tree61b0f4db758f68ef8a803004fd5788a77d6b4050 /os
parent2c7111235ca5c3bd23cd824589dfbc0ebd477585 (diff)
Move RTLD_DI_SETSIGNAL code into a separate block to quiet warning
Gets rid of gcc 4.8 warning: osinit.c:211:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os')
-rw-r--r--os/osinit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/osinit.c b/os/osinit.c
index ff0979ac8..91e3e068c 100644
--- a/os/osinit.c
+++ b/os/osinit.c
@@ -208,9 +208,11 @@ OsInit(void)
* for failures to load libraries/modules at runtime so we can clean up
* after ourselves.
*/
- int failure_signal = SIGQUIT;
+ {
+ int failure_signal = SIGQUIT;
- dlinfo(RTLD_SELF, RTLD_DI_SETSIGNAL, &failure_signal);
+ dlinfo(RTLD_SELF, RTLD_DI_SETSIGNAL, &failure_signal);
+ }
#endif
#if !defined(XQUARTZ) /* STDIN is already /dev/null and STDOUT/STDERR is managed by console_redirect.c */