diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-13 17:39:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-13 17:39:52 +0100 |
commit | 9d3e3aa58dc4e76586b20a7b60c0495ae83a678f (patch) | |
tree | b1c35fa8681c207c3154e0e8412e17437e663bd2 /src/libsystemd-bus | |
parent | 49cf4ece205bf23c39c30a633a20e22260fc1706 (diff) |
event: make gcc shut up
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/sd-event.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c index 2b75c6ae9c..946ec0fc4f 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; |