commit | 23427a63fc8f7742210d329b9edd77a6e547d2cd | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sat Dec 08 15:45:46 2018 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sat Dec 08 15:45:46 2018 +0100 |
tree | 58eda337215354b9a6c93a0a46a7b2181086b102 | |
parent | 51283b8109dc2fdaa3fefc5c5a93b6cda72cddfd [diff] |
lineedit: fix "defined but not used" sigaction2 warning Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 378f090..3ed38e5 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c
@@ -2309,6 +2309,7 @@ } #endif +#if ENABLE_FEATURE_EDITING_WINCH static void sigaction2(int sig, struct sigaction *act) { // Grr... gcc 8.1.1: @@ -2318,6 +2319,7 @@ oact = act; sigaction(sig, act, oact); } +#endif /* maxsize must be >= 2. * Returns: