From 5489df591f4f47e166903ba5f64c7113cc6f3a0d Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 27 Nov 2012 22:19:01 +0100 Subject: [PATCH 11/11] Fix warning on signedness in glib-demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: CC attachments.o ../../../poppler/glib/demo/attachments.c: In function ‘attachment_save_callback’: ../../../poppler/glib/demo/attachments.c:190:2: warning: pointer targets in passing argument 2 of ‘g_checksum_update’ differ in signedness [-Wpointer-sign] /usr/include/glib-2.0/glib/gchecksum.h:69:23: note: expected ‘const guchar *’ but argument is of type ‘const gchar *’ --- glib/demo/attachments.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/glib/demo/attachments.c b/glib/demo/attachments.c index 1b74274..6fe7eda 100644 --- a/glib/demo/attachments.c +++ b/glib/demo/attachments.c @@ -187,7 +187,7 @@ attachment_save_callback (const gchar *buf, { GChecksum *cs = (GChecksum *)data; - g_checksum_update (cs, buf, count); + g_checksum_update (cs, (guchar *) buf, count); return TRUE; } -- 1.7.5.4