diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-08 15:45:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-08 15:45:46 +0100 |
commit | 23427a63fc8f7742210d329b9edd77a6e547d2cd (patch) | |
tree | 58eda337215354b9a6c93a0a46a7b2181086b102 /libbb | |
parent | 51283b8109dc2fdaa3fefc5c5a93b6cda72cddfd (diff) | |
download | busybox-w32-23427a63fc8f7742210d329b9edd77a6e547d2cd.tar.gz busybox-w32-23427a63fc8f7742210d329b9edd77a6e547d2cd.tar.bz2 busybox-w32-23427a63fc8f7742210d329b9edd77a6e547d2cd.zip |
lineedit: fix "defined but not used" sigaction2 warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
2309 | } | 2309 | } |
2310 | #endif | 2310 | #endif |
2311 | 2311 | ||
2312 | #if ENABLE_FEATURE_EDITING_WINCH | ||
2312 | static void sigaction2(int sig, struct sigaction *act) | 2313 | static void sigaction2(int sig, struct sigaction *act) |
2313 | { | 2314 | { |
2314 | // Grr... gcc 8.1.1: | 2315 | // Grr... gcc 8.1.1: |
@@ -2318,6 +2319,7 @@ static void sigaction2(int sig, struct sigaction *act) | |||
2318 | oact = act; | 2319 | oact = act; |
2319 | sigaction(sig, act, oact); | 2320 | sigaction(sig, act, oact); |
2320 | } | 2321 | } |
2322 | #endif | ||
2321 | 2323 | ||
2322 | /* maxsize must be >= 2. | 2324 | /* maxsize must be >= 2. |
2323 | * Returns: | 2325 | * Returns: |