summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-12-29 18:46:44 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2020-01-24 10:39:56 -0600
commit3e9ee04f11ab505e6e79b75b5627d1e075932330 (patch)
tree94f5c972135fc233be1fb5f5d7f42b7bd6eff839 /src
parent76fd406a75c340fdda4c7a3a9dc56d206b2b0577 (diff)
downloadlibgit2-3e9ee04f11ab505e6e79b75b5627d1e075932330.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trace.h b/src/trace.h
index 6cf16776f..e15118ef5 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