summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-10-15 13:29:19 +0200
committerKarel Zak <kzak@redhat.com>2013-10-15 13:29:19 +0200
commit7bd3336f9a771e69ea2b761cff37f86c364dc787 (patch)
tree7fb37e4d9280140e699238a146fb37315c3da5a2
parente39966c6a026003f88989e5469fa9b3682fcfbc6 (diff)
downloadutil-linux-7bd3336f9a771e69ea2b761cff37f86c364dc787.tar.gz
cal: fix warning when compiled --without-ncurses
Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--misc-utils/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index a286d8d5..dacc7a71 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -107,7 +107,7 @@ static char termbuffer[4096];
static char tcbuffer[4096];
static char *strbuf = termbuffer;
-static void my_setupterm(const char *term, int fildes, int *errret)
+static void my_setupterm(const char *term, int fildes __attribute__((__unused__)), int *errret)
{
*errret = tgetent(tcbuffer, term);
}