mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-19 13:38:37 +02:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue