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 <madcoder@debian.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Pierre Habouzit committed
Aug 23, 2006 at 12:39 UTC
5df7dbbae4a51e20afc00acc5c87ea4536d1302c
1 file changed
+3
-3
date.c
+3
-3
@@ -584,10 +584,10 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num)
584
const struct typelen *tl;
585
const struct special *s;
586
const char *end = date;
587
- int n = 1, i;
587
+ int i;
588
589
- while (isalpha(*++end))
590
- n++;
589
+ while (isalpha(*++end));
590
+ ;
591
592
for (i = 0; i < 12; i++) {
593
int match = match_string(date, month_names[i]);