From a45d733cce8aebeae8d04fa1e67ca928d119dc39 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Aug 2007 03:04:02 +0000 Subject: * locale/programs/ld-collate.c (collate_output): Avoid warning if NDEBUG is defined. --- locale/programs/ld-collate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/programs/ld-collate.c') diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index 09237ea..feab034 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -2518,7 +2518,9 @@ collate_output (struct localedef_t *locale, const struct charmap_t *charmap, uint32_t namelen = strlen (runp->name); uint32_t hash = elem_hash (runp->name, namelen); size_t idx = hash % elem_size; +#ifndef NDEBUG size_t start_idx = idx; +#endif if (elem_table[idx * 2] != 0) { -- cgit v1.1