summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9039795)
raw | patch | inline | side by side (parent: 9039795)
author | Chris Lundquist <chris.lundquist@bluebox.net> | |
Thu, 11 Oct 2012 00:04:26 +0000 (17:04 -0700) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Oct 2012 20:28:12 +0000 (22:28 +0200) |
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 be22276923187e67994d92d6219bee29130738b6..570b9d4f552cf4757a0b240bebbffcada7dd8a9e 100644 (file)
--- a/src/network.c
+++ b/src/network.c
#if HAVE_LIBGCRYPT
# 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
part_header_t pkg_head;
uint64_t pkg_value;
-
+
int offset;
packet_len = sizeof (pkg_head) + sizeof (pkg_value);
return (-1);
sstrncpy (vl_def->type_instance, vl->type_instance, sizeof (vl_def->type_instance));
}
-
+
if (write_part_values (&buffer, &buffer_size, ds, vl) != 0)
return (-1);
return (0);
} /* int network_init */
-/*
+/*
* The flush option of the network plugin cannot flush individual identifiers.
* All the values are added to a buffer and sent when the buffer is full, the
* requested value may or may not be in there, it's not worth finding out. We