summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96bcc6a)
raw | patch | inline | side by side (parent: 96bcc6a)
author | Ed Schouten <ed@80386.nl> | |
Fri, 16 Nov 2012 20:58:46 +0000 (21:58 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 17 Nov 2012 07:06:31 +0000 (08:06 +0100) |
<gcrypt.h> accepts a definition called GCRYPT_NO_DEPRECATED to disable
deprecated functionality. Unfortunately, this definition is not
sufficient to suppress all warnings. However, FreeBSD's version of
libgcrypt has been fixed to properly remove all deprecated features.
Signed-off-by: Florian Forster <octo@collectd.org>
deprecated functionality. Unfortunately, this definition is not
sufficient to suppress all warnings. However, FreeBSD's version of
libgcrypt has been fixed to properly remove all deprecated features.
Signed-off-by: Florian Forster <octo@collectd.org>
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index d6e0dc0174c359af26a1ad6b576a2a4c28743ccd..19b4cc34d41d39a758b1db0f70f0e22080fdb982 100644 (file)
--- a/src/network.c
+++ b/src/network.c
*/
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# endif
+/* FreeBSD's copy of libgcrypt extends the existing GCRYPT_NO_DEPRECATED
+ * to properly hide all deprecated functionality.
+ * http://svnweb.freebsd.org/ports/head/security/libgcrypt/files/patch-src__gcrypt.h.in
+ */
+# define GCRYPT_NO_DEPRECATED
# include <gcrypt.h>
# if defined __APPLE__
/* Re enable deprecation warnings */