From 2f878868e0d4b65a6955a9a3721f05bbf274f3f2 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 16 Mar 2006 12:50:07 +0000 Subject: [PATCH] * Fixed compiler warnings when UTF-8 S-Lang is not available. --- caca/driver_slang.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caca/driver_slang.c b/caca/driver_slang.c index c49fd83..1eeb986 100644 --- a/caca/driver_slang.c +++ b/caca/driver_slang.c @@ -378,6 +378,7 @@ static void slang_init_palette(void) static void slang_write_utf32(uint32_t c) { +#ifdef HAVE_SLSMG_UTF8_ENABLE static const uint8_t mark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC @@ -385,6 +386,7 @@ static void slang_write_utf32(uint32_t c) char buf[10], *parser; int bytes; +#endif if(c < 0x80) {