Remove unreachable break statement
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:25:06 +0000 (14:25 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:25:06 +0000 (14:25 +0200)
src/daemon/collectd.c:492:7: warning: 'break' will never be executed [-Wunreachable-code-break]
      break;
      ^~~~~

src/daemon/collectd.c

index 3b959c7..1d19be5 100644 (file)
@@ -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) */