comparison tests/test-tsearch.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 a315d09bcec4
comparison
equal deleted inserted replaced
40154:df1c9ad85e3e 40155:84fd38f4932c
262 262
263 int 263 int
264 main (int argc, char **argv) 264 main (int argc, char **argv)
265 { 265 {
266 int total_error = 0; 266 int total_error = 0;
267 static char state[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
268 void *root = NULL; 267 void *root = NULL;
269 int i, j; 268 int i, j;
270 269
271 #if HAVE_INITSTATE 270 #if HAVE_INITSTATE
271 static char state[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
272
272 initstate (SEED, state, 8); 273 initstate (SEED, state, 8);
273 #endif 274 #endif
274 275
275 for (i = 0; i < SIZE; ++i) 276 for (i = 0; i < SIZE; ++i)
276 x[i] = i; 277 x[i] = i;