projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f8386
)
[PATCH] blktrace: fix a few -W warnings
author
Jens Axboe
<axboe@suse.de>
Wed, 5 Oct 2005 07:13:29 +0000
(09:13 +0200)
committer
Jens Axboe
<axboe@suse.de>
Wed, 5 Oct 2005 07:13:29 +0000
(09:13 +0200)
And leave -W on in the Makefile
Makefile
patch
|
blob
|
blame
|
history
blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
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
diff --git
a/blktrace.c
b/blktrace.c
index b945e0e2839586d0963fbb807a6d869c44ead0c9..acbfb1308ab4e58111dbb7bbd0008a562b1fdbdd 100644
(file)
--- 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;
/*