author | Vincent Bernat <vincent@bernat.im> | |
Fri, 7 Nov 2014 14:20:22 +0000 (15:20 +0100) | ||
committer | Vincent Bernat <Vincent.Bernat@exoscale.ch> | |
Fri, 7 Nov 2014 14:46:48 +0000 (15:46 +0100) | ||
commit | 8cae289f02f7bfae5a3d23ce8f16f8db0a9d197a | |
tree | 5f3fc4f8e902c99cd0f287ca3ac23c71a95b7348 | tree | snapshot |
parent | 9c7c25a44056c65fb90eae62be97b61106bc9518 | commit | diff |
network: don't enable gcrypt thread callbacks when gcrypt recent enough
From `gcrypt.h`:
> NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore used.
> However we keep it to allow for some source code compatibility if used
> in the standard way.
Otherwise, we get a deprecation warning which is turned into an error:
```
CC libcollectdclient_la-network_buffer.lo
../../../src/libcollectdclient/network_buffer.c:58:15: error: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Werror=deprecated-declarations]
GCRY_THREAD_OPTION_PTHREAD_IMPL;
```
Fixes: #632
From `gcrypt.h`:
> NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore used.
> However we keep it to allow for some source code compatibility if used
> in the standard way.
Otherwise, we get a deprecation warning which is turned into an error:
```
CC libcollectdclient_la-network_buffer.lo
../../../src/libcollectdclient/network_buffer.c:58:15: error: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Werror=deprecated-declarations]
GCRY_THREAD_OPTION_PTHREAD_IMPL;
```
Fixes: #632
src/libcollectdclient/network_buffer.c | diff | blob | history | |
src/network.c | diff | blob | history |