From 090cc6357193c723187dc1e567101852cd8a24de Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Jul 2013 22:08:37 +0200 Subject: add -O2, -Wall and -Werror to CFLAGS, fix warnings in code --- cqrlogo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cqrlogo.c') diff --git a/cqrlogo.c b/cqrlogo.c index 5e522cb..e0d76c2 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -27,10 +27,10 @@ GdkPixbuf * encode_qrcode (char *text, int scale) { QRcode *qrcode; GdkPixbuf *pixbuf, *pixbuf_scaled; int i, j, k, rowstride, channels; - gchar *pixel; + guchar *pixel; unsigned char *data; - qrcode = QRcode_encodeData(strlen(text), text, 0, QRCODE_LEVEL); + qrcode = QRcode_encodeData(strlen(text), (unsigned char *)text, 0, QRCODE_LEVEL); if (qrcode == NULL) return NULL; -- cgit v1.2.3-54-g00ecf