diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-04 22:08:37 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-04 22:08:37 +0200 |
commit | 090cc6357193c723187dc1e567101852cd8a24de (patch) | |
tree | 866be9743d40f883092cd13b11a2c7411392d0b4 /cqrlogo.c | |
parent | 2743aed543a5d41d5fbe33e192e75047bdbb23d7 (diff) | |
download | cqrlogo-090cc6357193c723187dc1e567101852cd8a24de.tar.gz cqrlogo-090cc6357193c723187dc1e567101852cd8a24de.tar.zst |
add -O2, -Wall and -Werror to CFLAGS, fix warnings in code
Diffstat (limited to 'cqrlogo.c')
-rw-r--r-- | cqrlogo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |