From: Pierre Habouzit Date: Wed, 23 Aug 2006 10:39:16 +0000 (+0200) Subject: n is in fact unused, and is later shadowed. X-Git-Tag: v1.4.3-rc1~203 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5df7dbbae4a51e20afc00acc5c87ea4536d1302c;p=git.git n is in fact unused, and is later shadowed. date.c::approxidate_alpha() counts the number of alphabets while moving the pointer but does not use the count. Signed-off-by: Pierre Habouzit Signed-off-by: Junio C Hamano --- diff --git a/date.c b/date.c index 66be23ab2..d780846b6 100644 --- a/date.c +++ b/date.c @@ -584,10 +584,10 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num) const struct typelen *tl; const struct special *s; const char *end = date; - int n = 1, i; + int i; - while (isalpha(*++end)) - n++; + while (isalpha(*++end)); + ; for (i = 0; i < 12; i++) { int match = match_string(date, month_names[i]);