* locale/programs/ld-collate.c (collate_output): Avoid warning if

NDEBUG is defined.
This commit is contained in:
Ulrich Drepper 2007-08-26 03:04:02 +00:00
parent 5dfeae0ec5
commit a45d733cce
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2007-08-25 Ulrich Drepper <drepper@redhat.com>
* locale/programs/ld-collate.c (collate_output): Avoid warning if
NDEBUG is defined.
* Makerules: Use -p option with mkdir.
* nis/nis_xdr.c (_xdr_nis_server): Work around gcc alias warning.

View File

@ -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)
{