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. --- catgets/gencat.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'catgets') diff --git a/catgets/gencat.c b/catgets/gencat.c index ad677a865f..2a48122fe8 100644 --- a/catgets/gencat.c +++ b/catgets/gencat.c @@ -467,7 +467,6 @@ this is the first definition")); else if (strncmp (&this_line[1], "delset", 6) == 0) { int cnt = sizeof ("delset"); - size_t set_number; while (isspace (this_line[cnt])) ++cnt; @@ -489,11 +488,8 @@ this is the first definition")); ++cnt; if (cnt == start) - { - error_at_line (0, 0, fname, start_line, - gettext ("illegal set number")); - set_number = 0; - } + error_at_line (0, 0, fname, start_line, + gettext ("illegal set number")); else { const char *symbol; @@ -506,7 +502,6 @@ this is the first definition")); /* We have a symbolic set name. This name must appear somewhere else in the catalogs read so far. */ - set_number = 0; for (runp = current->all_sets; runp != NULL; runp = runp->next) { @@ -657,12 +652,10 @@ this is the first definition")); else if (ident[0] != '\0') { struct message_list *runp; - struct message_list *lastp; /* Test whether the symbolic name was not used for another message in this message set. */ runp = current->current_set->messages; - lastp = NULL; while (runp != NULL) if (runp->symbol != NULL && strcmp (ident, runp->symbol) == 0) break; -- cgit 1.4.1