From 5615eaf26469f20c2d8c3be5770e12564a1edfff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 10 Jun 2011 12:45:09 -0700 Subject: Quash some new warnings from GCC 4.6. --- locale/programs/ld-collate.c | 2 -- locale/programs/ld-ctype.c | 4 +--- locale/programs/locarchive.c | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'locale') diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index b30d1ac949..a0a0159a5c 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -1987,7 +1987,6 @@ add_to_tablewc (uint32_t ch, struct element_t *runp) { /* As for the singlebyte table, we recognize sequences and compress them. */ - struct element_t *lastp; collidx_table_add (atwc.tablewc, ch, -(obstack_object_size (atwc.extrapool) @@ -2087,7 +2086,6 @@ add_to_tablewc (uint32_t ch, struct element_t *runp) } /* Next entry. */ - lastp = runp; runp = runp->wcnext; } while (runp != NULL); diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index 376a02c2f0..36d0a99a4c 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-2006, 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995-2006,2007,2009,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1995. @@ -2209,7 +2209,6 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result, struct token *now; enum token_t nowtok; size_t cnt; - struct charseq *last_seq; uint32_t last_wch = 0; enum token_t last_token; enum token_t ellipsis_token; @@ -2465,7 +2464,6 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result, } else last_str = NULL; - last_seq = seq; last_wch = wch; memcpy (last_charcode, now->val.charcode.bytes, 16); last_charcode_len = now->val.charcode.nbytes; diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c index 943bc5a6de..770a731a61 100644 --- a/locale/programs/locarchive.c +++ b/locale/programs/locarchive.c @@ -300,7 +300,6 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) void *p; unsigned int cnt, loccnt; struct namehashent *oldnamehashtab; - struct locrecent *oldlocrectab; struct locarhandle new_ah; size_t prefix_len = output_prefix ? strlen (output_prefix) : 0; char archivefname[prefix_len + sizeof (ARCHIVE_NAME)]; @@ -431,8 +430,6 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) still referenced and transfer it into the new file. */ oldnamehashtab = (struct namehashent *) ((char *) ah->addr + head->namehash_offset); - oldlocrectab = (struct locrecent *) ((char *) ah->addr - + head->locrectab_offset); /* Sort the old locrec table in order of data position. */ struct oldlocrecent oldlocrecarray[head->namehash_size]; -- cgit v1.2.3