Commit 80be19b90e4d5654e2bb347247270d210a6215e6

Patrick Steinhardt 2019-01-24T11:59:48

Merge pull request #4955 from csware/c4098 Fix VS warning C4098: 'giterr_set_str' : void function returning a value

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)