]> git.ipfire.org Git - thirdparty/git.git/commitdiff
drop redundant semicolon in empty while
authorJeff King <peff@peff.net>
Thu, 24 Oct 2013 08:42:17 +0000 (04:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 22:41:01 +0000 (15:41 -0700)
The extra semi-colon is harmless, since we really do want
the while loop to do nothing. But it does trigger a warning
from clang.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c

diff --git a/date.c b/date.c
index d780846b664530111a7bb67229987f202825e66d..21a538678205eb2bb9b368679383754e83d138ce 100644 (file)
--- a/date.c
+++ b/date.c
@@ -586,7 +586,7 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num)
        const char *end = date;
        int i;
 
-       while (isalpha(*++end));
+       while (isalpha(*++end))
                ;
 
        for (i = 0; i < 12; i++) {