@cryptotaxi247 / netdata-1 / commits / 3ba9dc6cf

Fix compilation warnings (#11846)

Vladimir Kobal committed Jan 10, 2022 at 15:17 UTC 3ba9dc6cf0905115f8e5046bd4e50bb866c15ded
3 files changed +9 -2
database/sqlite/sqlite_aclk_alert.c
+2
@@ -724,6 +724,7 @@ void health_alarm_entry2proto_nolock(struct alarm_log_entry *alarm_log, ALARM_EN
724 }
725 #endif
726
727 +#ifdef ENABLE_NEW_CLOUD_PROTOCOL
728 static int have_recent_alarm(RRDHOST *host, uint32_t alarm_id, time_t mark)
729 {
730 ALARM_ENTRY *ae = host->health_log.alarms;
@@ -737,6 +738,7 @@ static int have_recent_alarm(RRDHOST *host, uint32_t alarm_id, time_t mark)
738
739 return 0;
740 }
741 +#endif
742
743 #define ALARM_EVENTS_PER_CHUNK 10
744 void aclk_push_alert_snapshot_event(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd)
database/sqlite/sqlite_aclk_chart.c
+3 -1
@@ -318,7 +318,7 @@ void aclk_send_chart_event(struct aclk_database_worker_config *wc, struct aclk_d
318
319 uint64_t first_sequence;
320 uint64_t last_sequence;
321 - time_t last_timestamp;
321 + time_t last_timestamp = 0;
322
323 BUFFER *sql = buffer_create(1024);
324
@@ -979,6 +979,8 @@ int queue_chart_to_aclk(RRDSET *st)
979 #ifndef ENABLE_NEW_CLOUD_PROTOCOL
980 #ifdef ENABLE_ACLK
981 aclk_update_chart(st->rrdhost, st->id, 1);
982 +#else
983 + UNUSED(st);
984 #endif
985 return 0;
986 #else
ml/ml-dummy.c
+4 -1
@@ -10,7 +10,10 @@ void ml_new_host(RRDHOST *RH) { (void) RH; }
10
11 void ml_delete_host(RRDHOST *RH) { (void) RH; }
12
13 -char *ml_get_host_info(RRDHOST *RH) { (void) RH; }
13 +char *ml_get_host_info(RRDHOST *RH) {
14 + (void) RH;
15 + return NULL;
16 +}
17
18 void ml_new_dimension(RRDDIM *RD) { (void) RD; }
19