[git commit] top: fix "warning: unused variable new_mask"

Denys Vlasenko vda.linux at googlemail.com
Mon Mar 19 19:00:10 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=b3e98b1ccc86ae6a4b3ac242d48412a89ca8b8ed
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 procps/top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/procps/top.c b/procps/top.c
index 075c96c27..1b49a5e6b 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -1157,7 +1157,7 @@ int top_main(int argc UNUSED_PARAM, char **argv)
 #endif
 
 	while (scan_mask != EXIT_MASK) {
-		unsigned new_mask;
+		IF_FEATURE_TOP_INTERACTIVE(unsigned new_mask;)
 		procps_status_t *p = NULL;
 
 		if (OPT_BATCH_MODE) {


More information about the busybox-cvs mailing list