Warning fixes
authorJens Axboe <jens.axboe@oracle.com>
Tue, 7 Oct 2008 09:33:00 +0000 (11:33 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 7 Oct 2008 09:33:00 +0000 (11:33 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
init.c

diff --git a/fio.c b/fio.c
index dbb9ef65502c0e136785d22902099719e8304173..773f10698c83433748e78791431dcbf5a78883bc 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -107,7 +107,7 @@ static void status_timer_arm(void)
        setitimer(ITIMER_REAL, &itimer, NULL);
 }
 
-static void sig_alrm(int sig)
+static void sig_alrm(int fio_unused sig)
 {
        if (threads) {
                update_io_ticks();
@@ -125,7 +125,7 @@ static void sig_int(int sig)
        }
 }
 
-static void sig_ill(int sig)
+static void sig_ill(int fio_unused sig)
 {
        if (!threads)
                return;
diff --git a/init.c b/init.c
index a544996ea433170e6378658fe43ad08950d1e861..08429c4b027b53e2b1c18b017d28e89c267145b2 100644 (file)
--- a/init.c
+++ b/init.c
@@ -878,7 +878,7 @@ struct debug_level debug_levels[] = {
        { .name = "parse",      .shift = FD_PARSE },
        { .name = "diskutil",   .shift = FD_DISKUTIL },
        { .name = "job",        .shift = FD_JOB },
-       { },
+       { .name = NULL, },
 };
 
 static int set_debug(const char *string)