projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c170c9
)
Remove unreachable break statement
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:25:06 +0000
(14:25 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
3b959c7
..
1d19be5
100644
(file)
--- 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) */