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>
This commit is contained in:
parent
2c7111235c
commit
bebcac0cf7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user