From: Karel Zak Date: Tue, 15 Oct 2013 11:29:19 +0000 (+0200) Subject: more: fix warning when compiled --without-ncurses X-Git-Tag: v2.24~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c5eb6cfc1eea41359c58caaaef531867ae899b9;p=thirdparty%2Futil-linux.git more: fix warning when compiled --without-ncurses Reported-by: Benno Schulenberg Signed-off-by: Karel Zak --- diff --git a/text-utils/more.c b/text-utils/more.c index 598e048963..da5439b4a5 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -286,7 +286,7 @@ static void my_putstring(char *s) tputs(s, fileno(stdout), putchar); } -static void my_setupterm(char *term, int fildes, int *errret) +static void my_setupterm(char *term, int fildes __attribute__((__unused__)), int *errret) { *errret = tgetent(tcbuffer, term); }