From: Denys Vlasenko Date: Sat, 8 Dec 2018 14:45:46 +0000 (+0100) Subject: lineedit: fix "defined but not used" sigaction2 warning X-Git-Tag: 1_30_0~254 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23427a63fc8f7742210d329b9edd77a6e547d2cd;p=oweals%2Fbusybox.git lineedit: fix "defined but not used" sigaction2 warning Signed-off-by: Denys Vlasenko --- diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 378f0900a..3ed38e54d 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -2309,6 +2309,7 @@ static int32_t reverse_i_search(int timeout) } #endif +#if ENABLE_FEATURE_EDITING_WINCH static void sigaction2(int sig, struct sigaction *act) { // Grr... gcc 8.1.1: @@ -2318,6 +2319,7 @@ static void sigaction2(int sig, struct sigaction *act) oact = act; sigaction(sig, act, oact); } +#endif /* maxsize must be >= 2. * Returns: