Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pks-t
Copy link
Member

@pks-t pks-t commented Nov 28, 2019

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.

@pks-t
Copy link
Member Author

pks-t commented Nov 28, 2019

/cc @ethomson

@pks-t pks-t force-pushed the pks/clar-trace-warning branch from f846700 to 3feda6a Compare November 28, 2019 13:48
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`.
@pks-t pks-t force-pushed the pks/clar-trace-warning branch from 3feda6a to 1d470a7 Compare November 28, 2019 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants