Commit 3e9ee04f by Edward Thomson

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.
parent 76fd406a
...@@ -56,7 +56,7 @@ GIT_INLINE(void) git_trace__null( ...@@ -56,7 +56,7 @@ GIT_INLINE(void) git_trace__null(
GIT_UNUSED(fmt); GIT_UNUSED(fmt);
} }
#define git_trace_level() ((void)0) #define git_trace_level() ((git_trace_level_t)0)
#define git_trace git_trace__null #define git_trace git_trace__null
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment