From 7bd3336f9a771e69ea2b761cff37f86c364dc787 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 15 Oct 2013 13:29:19 +0200 Subject: cal: fix warning when compiled --without-ncurses Reported-by: Benno Schulenberg Signed-off-by: Karel Zak --- misc-utils/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3