comparison tests/uniconv/test-u32-conv-to-enc.c @ 40155:84fd38f4932c

tests: Fix some "unused variable" warnings. * tests/test-fts.c (fts_dealloc): Remove unused variable. * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise. * tests/test-striconveh.c (main): Move some variable into the '#if HAVE_ICONV'. * tests/test-striconveha.c (main): Likewise. * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise. * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise. * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise. * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise. * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise. * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise. * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise. * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise. * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise. * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise. * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise. * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise. * tests/test-tsearch.c (main): Move some variable into the '#if HAVE_INITSTATE'.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 12:24:47 +0100
parents b06060465f09
children 5d9b82ca550a
comparison
equal deleted inserted replaced
40154:df1c9ad85e3e 40155:84fd38f4932c
38 } 38 }
39 39
40 int 40 int
41 main () 41 main ()
42 { 42 {
43 #if HAVE_ICONV
43 static enum iconv_ilseq_handler handlers[] = 44 static enum iconv_ilseq_handler handlers[] =
44 { iconveh_error, iconveh_question_mark, iconveh_escape_sequence }; 45 { iconveh_error, iconveh_question_mark, iconveh_escape_sequence };
45 size_t h; 46 size_t h;
46 size_t o; 47 size_t o;
47 size_t i; 48 size_t i;
48 49
49 #if HAVE_ICONV
50 /* Assume that iconv() supports at least the encodings ASCII, ISO-8859-1, 50 /* Assume that iconv() supports at least the encodings ASCII, ISO-8859-1,
51 ISO-8859-2, and UTF-8. */ 51 ISO-8859-2, and UTF-8. */
52 52
53 /* Test conversion from UTF-32 to ISO-8859-1 with no errors. */ 53 /* Test conversion from UTF-32 to ISO-8859-1 with no errors. */
54 for (h = 0; h < SIZEOF (handlers); h++) 54 for (h = 0; h < SIZEOF (handlers); h++)