Commit 3e9ee04f11ab505e6e79b75b5627d1e075932330

Edward Thomson 2019-12-29T18:46:44

trace: compare against an int value When tracing is disabled, don't let `git_trace__level` return a void, since that can't be compared against.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/trace.h b/src/trace.h
index 6cf1677..e15118e 100644
--- a/src/trace.h
+++ b/src/trace.h
@@ -56,7 +56,7 @@ GIT_INLINE(void) git_trace__null(
 	GIT_UNUSED(fmt);
 }
 
-#define git_trace_level()		((void)0)
+#define git_trace_level()		((git_trace_level_t)0)
 #define git_trace			git_trace__null
 
 #endif