[PATCH] blktrace: fix a few -W warnings
authorJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:13:29 +0000 (09:13 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:13:29 +0000 (09:13 +0200)
And leave -W on in the Makefile

Makefile
blktrace.c

index 16baa9ee4fafec092b10a1298c8299dc4833c80d..e2d2c853216b361fe35a281b90a2b15b04c844f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC     = gcc
-CFLAGS = -Wall -O2 -g -D_GNU_SOURCE
+CFLAGS = -Wall -W -O2 -g -D_GNU_SOURCE
 PROGS  = blkparse blktrace verify_blkparse
 LIBS   = -lpthread
 SCRIPTS        = btrace
index b945e0e2839586d0963fbb807a6d869c44ead0c9..acbfb1308ab4e58111dbb7bbd0008a562b1fdbdd 100644 (file)
@@ -270,7 +270,7 @@ static int get_event_slow(struct thread_information *tip,
 {
        const int inc = sizeof(__u32);
        struct blk_io_trace foo;
-       int offset;
+       unsigned int offset;
        void *p;
 
        /*