From 6c4f4e6e6a00d412f2c683f0a4232389ee7235f8 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 3 Mar 2015 08:51:53 +0100 Subject: *: use void * for printing pointers On higher warning levels, compilers expect %p printf arguments to be void *. Since format string / argument warnings can be useful otherwise, let's get rid of this noise by sprinkling casts to void * over printf calls. Signed-off-by: David Lamparter --- lib/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stream.c') diff --git a/lib/stream.c b/lib/stream.c index 27f13d769..716f361dc 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -53,7 +53,7 @@ */ #define STREAM_WARN_OFFSETS(S) \ zlog_warn ("&(struct stream): %p, size: %lu, getp: %lu, endp: %lu\n", \ - (S), \ + (void *)(S), \ (unsigned long) (S)->size, \ (unsigned long) (S)->getp, \ (unsigned long) (S)->endp)\ -- cgit v1.2.3