summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-11-19 22:12:29 +0200
committerGitHub <noreply@github.com>2021-11-19 22:12:29 +0200
commit454387fcf4d30b57f0f2264f9d4acce081808d7a (patch)
tree94c5881dceb1bbb1f38a520a73a2be08d7787a2b /streaming
parent11b8588c94b37b7a082a041342e69e21a0a81ad5 (diff)
Cleanup compilation warnings (#11810)
* Fix compilation warnings (variables used when debugging is enabled using NETDATA_INTERNAL_CHECKS) * Fix compilation warning (casting)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c3
-rw-r--r--streaming/sender.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index bb7dca77c1..e8f8528a75 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -346,13 +346,12 @@ static int rrdpush_receive(struct receiver_state *rpt)
netdata_mutex_unlock(&rpt->host->receiver_lock);
}
+#ifdef NETDATA_INTERNAL_CHECKS
int ssl = 0;
#ifdef ENABLE_HTTPS
if (rpt->ssl.conn != NULL)
ssl = 1;
#endif
-
-#ifdef NETDATA_INTERNAL_CHECKS
info("STREAM %s [receive from [%s]:%s]: client willing to stream metrics for host '%s' with machine_guid '%s': update every = %d, history = %ld, memory mode = %s, health %s,%s tags '%s'"
, rpt->hostname
, rpt->client_ip
diff --git a/streaming/sender.c b/streaming/sender.c
index 60cf3f2445..0abfac1804 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -427,7 +427,9 @@ void attempt_to_send(struct sender_state *s) {
rrdpush_send_labels(s->host);
+#ifdef NETDATA_INTERNAL_CHECKS
struct circular_buffer *cb = s->buffer;
+#endif
netdata_thread_disable_cancelability();
netdata_mutex_lock(&s->mutex);