Skip to content

Commit

Permalink
drop redundant semicolon in empty while
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Oct 24, 2013
1 parent 5df7dbb commit 38db01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion date.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 38db01b

Please sign in to comment.