fix compiler warning
authorSusant Sahani <susant@redhat.com>
Tue, 16 Dec 2014 03:18:34 +0000 (08:48 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Dec 2014 05:30:34 +0000 (00:30 -0500)
src/shared/utf8.c:268:13: warning: unused variable 'd'
[-Wunused-variable]
         int d;

src/shared/utf8.c

index 67f6285..03a0abe 100644 (file)
@@ -265,7 +265,6 @@ char *ascii_is_valid(const char *str) {
 
 int utf8_encode_unichar(uint16_t c, char *p) {
         uint8_t *t = (uint8_t*) p;
-        int d;
 
         if (c < 0x80) {
                 t[0] = (uint8_t) c;