aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-06 18:26:33 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-06 18:26:33 +0200
commit2ab994f7079daa052f8816b72e215e1609d41f76 (patch)
tree327d8bbe704fec424f8842471873ff41b8c15729 /runit
parentf5018dac21df54647d0982ed4bebd0286d77cc56 (diff)
downloadbusybox-2ab994f7079daa052f8816b72e215e1609d41f76.tar.gz
placate gcc-8.0.1 warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r--runit/sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 86d181872..8054daedf 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -222,6 +222,7 @@ struct globals {
#define str_equal(s,t) (strcmp((s), (t)) == 0)
+#if ENABLE_SV || ENABLE_SVC
static void fatal_cannot(const char *m1) NORETURN;
static void fatal_cannot(const char *m1)
{
@@ -688,6 +689,7 @@ static int sv(char **argv)
}
return rc > 99 ? 99 : rc;
}
+#endif
#if ENABLE_SV
int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;