diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-08-26 03:04:02 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-08-26 03:04:02 +0000 |
commit | a45d733cce8aebeae8d04fa1e67ca928d119dc39 (patch) | |
tree | 3992426bb3f3cfc565684f54616ecfc793b1cd83 | |
parent | 5dfeae0ec5b5bd6f058c72c6f641c43992973efd (diff) | |
download | glibc-a45d733cce8aebeae8d04fa1e67ca928d119dc39.tar.gz glibc-a45d733cce8aebeae8d04fa1e67ca928d119dc39.tar.xz glibc-a45d733cce8aebeae8d04fa1e67ca928d119dc39.zip |
* locale/programs/ld-collate.c (collate_output): Avoid warning if
NDEBUG is defined.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | locale/programs/ld-collate.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index fa53b60880..db8ef780a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index 09237ea38c..feab034740 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) { |