summaryrefslogtreecommitdiffstats
path: root/database/rrddim.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2020-06-15 14:38:42 +0300
committerGitHub <noreply@github.com>2020-06-15 14:38:42 +0300
commit11a19ccf27d665bf1ad795bb4ed64786540d6212 (patch)
tree5ecdd90cb101743fd96c84fc51b4c33849a0288c /database/rrddim.c
parent5a1d123ba762a118bcc1989d9f37022d016dcca0 (diff)
Fixed compiler warnings (#9337)
Fixed compiler warnings
Diffstat (limited to 'database/rrddim.c')
-rw-r--r--database/rrddim.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/database/rrddim.c b/database/rrddim.c
index 535812ef6c..c71f48ca84 100644
--- a/database/rrddim.c
+++ b/database/rrddim.c
@@ -460,6 +460,9 @@ RRDDIM *rrddim_add_custom(RRDSET *st, const char *id, const char *name, collecte
void rrddim_free_custom(RRDSET *st, RRDDIM *rd, int db_rotated)
{
+#ifndef ENABLE_ACLK
+ UNUSED(db_rotated);
+#endif
debug(D_RRD_CALLS, "rrddim_free() %s.%s", st->name, rd->name);
if (!rrddim_flag_check(rd, RRDDIM_FLAG_ARCHIVED)) {
@@ -495,7 +498,7 @@ void rrddim_free_custom(RRDSET *st, RRDDIM *rd, int db_rotated)
// free(rd->annotations);
RRD_MEMORY_MODE rrd_memory_mode = rd->rrd_memory_mode;
- switch(rd->rrd_memory_mode) {
+ switch(rrd_memory_mode) {
case RRD_MEMORY_MODE_SAVE:
case RRD_MEMORY_MODE_MAP:
case RRD_MEMORY_MODE_RAM: