diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-05-04 15:25:11 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-05-04 15:25:11 +0200 |
commit | ba5e39ac92addf5d2183ac4ceb66ab52c59c017b (patch) | |
tree | 4ab98640318d557b9b4f7d56fd6b91966c59f970 /tests/diff/diffiter.c | |
parent | 26a09a93db4046379edf86d3c52ea9b760065fb9 (diff) | |
download | libgit2-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