From 4e3a0d5bfa20de3410e7127a753dce5b34f41870 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 17 Nov 2012 10:28:46 +0100 Subject: [PATCH] src/libcollectdclient/network_buffer.c: Copy gcrypt import magic from the network plugin. --- src/libcollectdclient/network_buffer.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.30.2