mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 02:18:05 +02:00
dbus-daemon: silence -Wswitch-default
There should be no way signal_handler() can be called for a signal we didn't ask for. If it somehow happens, ignore it. Based on a patch from Thomas Zimmermann. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
This commit is contained in:
parent
90a1bbecf2
commit
6883d9f300
1 changed files with 5 additions and 0 deletions
|
|
@ -128,6 +128,11 @@ signal_handler (int sig)
|
|||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
/* can't happen unless this signal handler gets used for a wrong
|
||||
* signal, but keep -Wswitch-default happy */
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* DBUS_UNIX */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue