]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ul.c: fix compier warnings
authorSami Kerola <kerolasa@iki.fi>
Sat, 30 Apr 2011 11:06:23 +0000 (13:06 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 May 2011 13:56:30 +0000 (15:56 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/ul.c

index fcc0f5bad7ed17d5f45d0ef7775d450e71d1cc2b..d2f88cd810181088eef957646a779dcfba6d23e0 100644 (file)
@@ -325,7 +325,7 @@ void filter(FILE *f)
                        obuf[col].c_width = w;
                        for (i = 1; i < w; i++)
                                obuf[col+i].c_width = -1;
-               } else if (obuf[col].c_char == c) {
+               } else if ((wint_t) obuf[col].c_char == c) {
                        for (i = 0; i < w; i++)
                                obuf[col+i].c_mode |= BOLD|mode;
                } else {
@@ -625,7 +625,7 @@ needcol(int col) {
        }
 }
 
-static void sig_handler(int signo)
+static void sig_handler(int signo __attribute__ ((__unused__)))
 {
        _exit(EXIT_SUCCESS);
 }