summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c23a06)
raw | patch | inline | side by side (parent: 2c23a06)
author | Florian Forster <octo@collectd.org> | |
Sat, 17 Nov 2012 09:28:46 +0000 (10:28 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 17 Nov 2012 09:28:46 +0000 (10:28 +0100) |
src/libcollectdclient/network_buffer.c | patch | blob | history |
index c795a1017c3451792a7d5aa3c5934c4fbebbb1fd..5553d82629bc08974cf27c3a72e7fd0cc39a553b 100644 (file)
#include <pthread.h>
#if HAVE_LIBGCRYPT
-#include <gcrypt.h>
+# include <pthread.h>
+# 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 <gcrypt.h>
+# if defined __APPLE__
+/* Re enable deprecation warnings */
+# pragma GCC diagnostic warning "-Wdeprecated-declarations"
+# endif
GCRY_THREAD_OPTION_PTHREAD_IMPL;
#endif