diff options
author | Benjamin ROBIN <dev@benjarobin.fr> | 2016-02-29 15:07:09 +0100 |
---|---|---|
committer | Benjamin ROBIN <dev@benjarobin.fr> | 2016-02-29 15:07:09 +0100 |
commit | d2e796739d731c41b8206dbd61706dd5bdedd926 (patch) | |
tree | b7cb6403cf6787bc33f7a14fe0d62707aa06cd90 /src/systemctl | |
parent | Merge pull request #2746 from daurnimator/patch-1 (diff) | |
download | systemd-d2e796739d731c41b8206dbd61706dd5bdedd926.tar.xz systemd-d2e796739d731c41b8206dbd61706dd5bdedd926.zip |
systemctl: Fix warn: action_to_runlevel() is not used
If HAVE_SYSV_COMPAT is not defined: ‘action_to_runlevel’ defined but not used
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index a4491692a9..11e26ce737 100644 --- 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 |