summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
authorKarel Zak2013-10-15 13:29:19 +0200
committerKarel Zak2013-10-15 13:34:42 +0200
commit9c5eb6cfc1eea41359c58caaaef531867ae899b9 (patch)
tree7774fa3046c38a626c043fa0aedf4ba05ac04e24 /text-utils/more.c
parentcal: fix warning when compiled --without-ncurses (diff)
downloadkernel-qcow2-util-linux-9c5eb6cfc1eea41359c58caaaef531867ae899b9.tar.gz
kernel-qcow2-util-linux-9c5eb6cfc1eea41359c58caaaef531867ae899b9.tar.xz
kernel-qcow2-util-linux-9c5eb6cfc1eea41359c58caaaef531867ae899b9.zip
more: fix warning when compiled --without-ncurses
Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/more.c')
-rw-r--r--text-utils/more.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/more.c b/text-utils/more.c
index 598e04896..da5439b4a 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);
}