[systemd-commits] src/libsystemd-bus
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Dec 13 08:40:04 PST 2013
src/libsystemd-bus/sd-event.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 9d3e3aa58dc4e76586b20a7b60c0495ae83a678f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 13 17:39:52 2013 +0100
event: make gcc shut up
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c
index 2b75c6a..946ec0f 100644
--- a/src/libsystemd-bus/sd-event.c
+++ b/src/libsystemd-bus/sd-event.c
@@ -521,6 +521,9 @@ static void source_free(sd_event_source *s) {
case SOURCE_EXIT:
prioq_remove(s->event->exit, s, &s->exit.prioq_index);
break;
+
+ case SOURCE_WATCHDOG:
+ assert_not_reached("Wut? I shouldn't exist.");
}
if (s->pending)
@@ -1228,6 +1231,9 @@ _public_ int sd_event_source_set_enabled(sd_event_source *s, int m) {
case SOURCE_DEFER:
s->enabled = m;
break;
+
+ case SOURCE_WATCHDOG:
+ assert_not_reached("Wut? I shouldn't exist.");
}
} else {
@@ -1283,6 +1289,9 @@ _public_ int sd_event_source_set_enabled(sd_event_source *s, int m) {
case SOURCE_DEFER:
s->enabled = m;
break;
+
+ case SOURCE_WATCHDOG:
+ assert_not_reached("Wut? I shouldn't exist.");
}
}
@@ -1793,6 +1802,9 @@ static int source_dispatch(sd_event_source *s) {
case SOURCE_EXIT:
r = s->exit.callback(s, s->userdata);
break;
+
+ case SOURCE_WATCHDOG:
+ assert_not_reached("Wut? I shouldn't exist.");
}
s->dispatching = false;
More information about the systemd-commits
mailing list