[wayland PATCH] silence the warning
juan.j.zhao at linux.intel.com
juan.j.zhao at linux.intel.com
Mon Feb 13 19:10:21 PST 2012
From: Juan Zhao <juan.j.zhao at linux.intel.com>
scanner.c:142:42: warning
connection.c:529:9: warning
connection.c:559:10: warning
---
src/connection.c | 4 ++--
src/scanner.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/connection.c b/src/connection.c
index 4ac5bf8..746f445 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -526,7 +526,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
err:
printf("request too big to marshal, maximum size is %lu\n",
- sizeof closure->buffer);
+ (long unsigned int)sizeof closure->buffer);
errno = ENOMEM;
return NULL;
}
@@ -556,7 +556,7 @@ 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);
+ (long unsigned int)sizeof closure->buffer, size + extra_space);
errno = ENOMEM;
wl_connection_consume(connection, size);
return NULL;
diff --git a/src/scanner.c b/src/scanner.c
index 699782f..91e2ad2 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -139,7 +139,7 @@ uppercase_dup(const char *src)
static void
desc_dump(char *src, int startcol)
{
- int i, j = 0, col = startcol, line = 0, len;
+ int i, j = 0, col = startcol, line = 0;
/* Strip leading space */
for (i = 0; isspace(src[i]); i++)
--
1.7.5.4
More information about the wayland-devel
mailing list