[PATCH 5/5] Turn off gcc warning on both 64 and 32 bit

spitzak at gmail.com spitzak at gmail.com
Sun Mar 18 22:56:22 PDT 2012


From: Bill Spitzak <spitzak at lulu.(none)>

---
 src/connection.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 9f78c85..2f32e42 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -557,8 +557,8 @@ wl_connection_vmarshal(struct wl_connection *connection,
 	return closure;
 
 err:
-	printf("request too big to marshal, maximum size is %lu\n",
-	       sizeof closure->buffer);
+	printf("request too big to marshal, maximum size is %u\n",
+	       (unsigned)(sizeof closure->buffer));
 	errno = ENOMEM;
 	return NULL;
 }
@@ -587,8 +587,8 @@ wl_connection_demarshal(struct wl_connection *connection,
 
 	extra_space = wl_message_size_extra(message);
 	if (sizeof closure->buffer < size + extra_space) {
-		printf("request too big to demarshal, maximum %lu actual %d\n",
-		       sizeof closure->buffer, size + extra_space);
+		printf("request too big to demarshal, maximum %u actual %d\n",
+		       (unsigned)(sizeof closure->buffer), size + extra_space);
 		errno = ENOMEM;
 		wl_connection_consume(connection, size);
 		return NULL;
-- 
1.7.4.1



More information about the wayland-devel mailing list