From: Ruben Kerkhof Date: Mon, 14 May 2018 12:25:06 +0000 (+0200) Subject: Remove unreachable break statement X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9241ae4ec19569c818a369401c7953e01bc3b7c1;p=collectd.git Remove unreachable break statement src/daemon/collectd.c:492:7: warning: 'break' will never be executed [-Wunreachable-code-break] break; ^~~~~ --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 3b959c76..1d19be5e 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -489,7 +489,6 @@ static void read_cmdline(int argc, char **argv, struct cmdline_config *config) { #endif /* COLLECT_DAEMON */ case 'h': exit_usage(0); - break; default: exit_usage(1); } /* switch (c) */