summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-11-28 14:45:15 +0100
committerPatrick Steinhardt <ps@pks.im>2019-11-28 14:49:45 +0100
commit1d470a710facb400acc00859a3cdbae518642bfb (patch)
tree358f6e626c6ec28398ecf20dd6aa9098bf929834 /src/global.h
parentfb439c975a2de33f5b0c317f3fdea49dc94b27dc (diff)
downloadlibgit2-1d470a710facb400acc00859a3cdbae518642bfb.tar.gz
tests: fix compiler warning if tracing is disabled
If building libgit2's test suite with tracing disabled, then the compiler will emit a warning due to the unused `message_prefix` function. Fix the issue by wrapping the whole file into ifdef's for `GIT_TRACE` and providing separate empty function implementations for both `cl_global_trace_register` and `cl_global_trace_disable`.
Diffstat (limited to 'src/global.h')
0 files changed, 0 insertions, 0 deletions