From: Florian Forster Date: Sat, 17 Nov 2012 09:28:46 +0000 (+0100) Subject: src/libcollectdclient/network_buffer.c: Copy gcrypt import magic from the network... X-Git-Tag: collectd-5.2.0~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e3a0d5bfa20de3410e7127a753dce5b34f41870;p=collectd.git src/libcollectdclient/network_buffer.c: Copy gcrypt import magic from the network plugin. --- diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c index c795a101..5553d826 100644 --- a/src/libcollectdclient/network_buffer.c +++ b/src/libcollectdclient/network_buffer.c @@ -36,7 +36,19 @@ #include #if HAVE_LIBGCRYPT -#include +# include +# if defined __APPLE__ +/* default xcode compiler throws warnings even when deprecated functionality + * is not used. -Werror breaks the build because of erroneous warnings. + * http://stackoverflow.com/questions/10556299/compiler-warnings-with-libgcrypt-v1-5-0/12830209#12830209 + */ +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +# endif +# include +# if defined __APPLE__ +/* Re enable deprecation warnings */ +# pragma GCC diagnostic warning "-Wdeprecated-declarations" +# endif GCRY_THREAD_OPTION_PTHREAD_IMPL; #endif