From: Jim Warner Date: Tue, 14 Aug 2018 05:00:00 +0000 (-0500) Subject: top: the '#define SCROLLVAR_NO' is bent but not broken X-Git-Tag: v3.3.16~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86611b461fa84787bdbee2c552238e474dc70f6e;p=procps-ng top: the '#define SCROLLVAR_NO' is bent but not broken This patch simply avoids an 'unused' variable warning. Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 057c60af..46ffdc51 100644 --- a/top/top.c +++ b/top/top.c @@ -904,7 +904,10 @@ static int show_pmt (const char *str) { /* * Create and print the optional scroll coordinates message */ static void show_scroll (void) { - char tmp1[SMLBUFSIZ], tmp2[SMLBUFSIZ]; + char tmp1[SMLBUFSIZ]; +#ifndef SCROLLVAR_NO + char tmp2[SMLBUFSIZ]; +#endif int totpflgs = Curwin->totpflgs; int begpflgs = Curwin->begpflg + 1;