summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-05-04 15:25:11 +0200
committerPatrick Steinhardt <ps@pks.im>2018-05-04 15:25:11 +0200
commitba5e39ac92addf5d2183ac4ceb66ab52c59c017b (patch)
tree4ab98640318d557b9b4f7d56fd6b91966c59f970 /tests/diff/diffiter.c
parent26a09a93db4046379edf86d3c52ea9b760065fb9 (diff)
downloadlibgit2-ba5e39ac92addf5d2183ac4ceb66ab52c59c017b.tar.gz
streams: openssl: fix bogus warning on unused parameter
Our provided callback function `threadid_cb(CRYPTO_THREADID *threadid)` sets up a unique thread ID by asking pthread for the current thread ID. Since openssl version 1.1, `CRYPTO_THREADID_set_numeric` is simply a no-op macro, leaving the `threadid` argument unused after the preprocessor has processed the macro. GCC does not account for that situation and will thus complain about `threadid` being unused. Silence this warning by using `GIT_UNUSED(threadid)`.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions