projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df2b16
)
systemctl: Fix warn: action_to_runlevel() is not used
author
Benjamin ROBIN
<dev@benjarobin.fr>
Mon, 29 Feb 2016 14:07:09 +0000
(15:07 +0100)
committer
Benjamin ROBIN
<dev@benjarobin.fr>
Mon, 29 Feb 2016 14:07:09 +0000
(15:07 +0100)
If HAVE_SYSV_COMPAT is not defined: ‘action_to_runlevel’ defined but not used
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index a4491692a92ffe2e2ce52bfa76b0a6bd3a52af5f..11e26ce737399d32c2a1534317fb3139a21bec02 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-7263,6
+7263,7
@@
static int parse_argv(int argc, char *argv[]) {
return systemctl_parse_argv(argc, argv);
}
+#ifdef HAVE_SYSV_COMPAT
_pure_ static int action_to_runlevel(void) {
static const char table[_ACTION_MAX] = {
@@
-7280,6
+7281,7
@@
_pure_ static int action_to_runlevel(void) {
return table[arg_action];
}
+#endif
static int talk_initctl(void) {
#ifdef HAVE_SYSV_COMPAT