]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: fix warning when compiled --without-ncurses
authorKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2013 11:29:19 +0000 (13:29 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2013 11:29:19 +0000 (13:29 +0200)
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c

index a286d8d545826d38b8ee24d52ee9481c28f25689..dacc7a711027c46777935d031952de4a14540602 100644 (file)
@@ -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);
 }