mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
* locale/programs/ld-collate.c (collate_output): Avoid warning if
NDEBUG is defined.
This commit is contained in:
parent
5dfeae0ec5
commit
a45d733cce
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user