Commit 53bf0bde9ada7d148b0d837cc74485bc374022aa

Sven Strickroth 2019-01-24T11:29:36

Fix VS warning C4098: 'giterr_set_str' : void function returning a value Signed-off-by: Sven Strickroth <email@cs-ware.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/errors.c b/src/errors.c
index 03097dd..afa3409 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -226,7 +226,7 @@ void giterr_clear(void)
 
 void giterr_set_str(int error_class, const char *string)
 {
-	return git_error_set_str(error_class, string);
+	git_error_set_str(error_class, string);
 }
 
 void giterr_set_oom(void)