From: Jens Axboe Date: Wed, 5 Oct 2005 07:13:29 +0000 (+0200) Subject: [PATCH] blktrace: fix a few -W warnings X-Git-Tag: blktrace-0.99~48^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fb39f32f8392ad464f6b157de2ed79931ee2d0ad;p=blktrace.git [PATCH] blktrace: fix a few -W warnings And leave -W on in the Makefile --- diff --git a/Makefile b/Makefile index 16baa9e..e2d2c85 100644 --- 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 diff --git a/blktrace.c b/blktrace.c index b945e0e..acbfb13 100644 --- a/blktrace.c +++ b/blktrace.c @@ -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; /*