Skip to contentSkip to conversation

test-generation.c: Fix a compiler warning

PATCH New Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-generation.c: Fix a compiler warning

gcc complains as follows:

CC test-generation.o
test-generation.c: In function `main':
test-generation.c:105: warning: control reaches end of \
non-void function

In order to suppress the warning, we simply add a suitable return statement to main().

---

Hi Junio,

Could you please squash this into commit 1784d096 ("test-generation:
compute generation numbers and clock skews", 04-09-2012).

Thanks!

ATB,
Ramsay Jones

 test-generation.c | 1 +
 1 file changed, 1 insertion(+)
test-generation.c +1 -0
index 4df5a0d..de87f2b 100644
@@ -102,4 +102,5 @@ int main(int ac, const char **av)
 
 		show_commit(commit, gd);
 	}
+	return 0;
 }
Signature · 1 line
1.7.12