Skip to contentSkip to conversation

drop redundant semicolon in empty while

PATCH New Jeff King 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Jeff King

author
#0 lore raw

PATCH 1/1 drop redundant semicolon in empty while

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.

---
 date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
date.c +1 -1
index 29f1540..83b4166 100644
@@ -907,7 +907,7 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm
 	const char *end = date;
 	int i;
 
-	while (isalpha(*++end));
+	while (isalpha(*++end))
 		;
 
 	for (i = 0; i < 12; i++) {
Signature · 1 line
1.8.4.1.898.g8bf8a41.dirty