summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e79fb4)
raw | patch | inline | side by side (parent: 2e79fb4)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 2 Dec 2016 13:39:25 +0000 (14:39 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 2 Dec 2016 13:39:25 +0000 (14:39 +0100) |
make[3]: Entering directory '/home/ruben/src/collectd/src/daemon'
CC meta_data.lo
meta_data.c:728:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
actual = e->value.mv_boolean ? "true" : "false";
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CCLD libmetadata.la
CC collectd-meta_data.o
meta_data.c:728:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
actual = e->value.mv_boolean ? "true" : "false";
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CC meta_data.lo
meta_data.c:728:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
actual = e->value.mv_boolean ? "true" : "false";
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CCLD libmetadata.la
CC collectd-meta_data.o
meta_data.c:728:12: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
actual = e->value.mv_boolean ? "true" : "false";
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
src/daemon/meta_data.c | patch | blob | history |
diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c
index 583d81966d157587ab3c63a708360d9afef53286..19d17bf823523fee2ea7ac8169f5eab84c635ba0 100644 (file)
--- a/src/daemon/meta_data.c
+++ b/src/daemon/meta_data.c
int meta_data_as_string(meta_data_t *md, /* {{{ */
const char *key, char **value) {
meta_entry_t *e;
- char *actual;
+ const char *actual;
char buffer[MD_MAX_NONSTRING_CHARS]; /* For non-string types. */
char *temp;
int type;