top: fix "warning: unused variable new_mask"
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 19 Mar 2018 19:00:10 +0000 (20:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 19 Mar 2018 19:00:10 +0000 (20:00 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/top.c

index 075c96c2792ec6e4ae99ca04e29f1d7d9dbd27e1..1b49a5e6b855e74a9338c60ab07230503ea66e4f 100644 (file)
@@ -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) {