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:
Simon McVittie 2017-01-17 20:21:21 +00:00 committed by Simon McVittie
parent 90a1bbecf2
commit 6883d9f300

View file

@ -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 */