From 6ce218612bdbea67db9a4be7f07f43e7ca9721a3 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 18 Sep 2016 12:11:07 +0200 Subject: [PATCH] Fix build warnings if fallback shell is disabled Signed-off-by: Joachim Nilsson --- tty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 2d3d3024..8e3ba865 100644 --- a/tty.c +++ b/tty.c @@ -35,7 +35,9 @@ #include "tty.h" #include "utmp-api.h" +#ifdef FALLBACK_SHELL static pid_t fallback = 0; +#endif static LIST_HEAD(, tty_node) tty_list = LIST_HEAD_INITIALIZER(); @@ -214,7 +216,7 @@ int tty_enabled(finit_tty_t *tty, int runlevel) /* * Fallback shell if no TTYs are active */ -int tty_fallback(pid_t lost) +int tty_fallback(pid_t UNUSED(lost)) { #ifdef FALLBACK_SHELL if (lost == 1) {