summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-10-26 20:34:48 +0300
committerGitHub <noreply@github.com>2018-10-26 20:34:48 +0300
commitbcdfedbe8215fdf461b61900eba2a9de4be6c0b8 (patch)
treec3597819ec055cb64bc752fe2c81fe1c485305f0 /database
parentc6cce6bd2accec27a61243e1ffa38826ac2a4892 (diff)
fixed rpm build; (#4503)
Diffstat (limited to 'database')
-rw-r--r--database/rrddimvar.c3
-rw-r--r--database/rrdset.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/database/rrddimvar.c b/database/rrddimvar.c
index 6a339cabea..3c2ed75e57 100644
--- a/database/rrddimvar.c
+++ b/database/rrddimvar.c
@@ -153,6 +153,7 @@ static inline void rrddimvar_create_variables(RRDDIMVAR *rs) {
RRDDIMVAR *rrddimvar_create(RRDDIM *rd, RRDVAR_TYPE type, const char *prefix, const char *suffix, void *value, RRDVAR_OPTIONS options) {
RRDSET *st = rd->rrdset;
+ (void)st;
debug(D_VARIABLES, "RRDDIMSET create for chart id '%s' name '%s', dimension id '%s', name '%s%s%s'", st->id, st->name, rd->id, (prefix)?prefix:"", rd->name, (suffix)?suffix:"");
@@ -179,6 +180,8 @@ RRDDIMVAR *rrddimvar_create(RRDDIM *rd, RRDVAR_TYPE type, const char *prefix, co
void rrddimvar_rename_all(RRDDIM *rd) {
RRDSET *st = rd->rrdset;
+ (void)st;
+
debug(D_VARIABLES, "RRDDIMSET rename for chart id '%s' name '%s', dimension id '%s', name '%s'", st->id, st->name, rd->id, rd->name);
RRDDIMVAR *rs, *next = rd->variables;
diff --git a/database/rrdset.c b/database/rrdset.c
index 90b3263a80..79ce114b48 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -206,6 +206,8 @@ inline void rrdset_isnot_obsolete(RRDSET *st) {
inline void rrdset_update_heterogeneous_flag(RRDSET *st) {
RRDHOST *host = st->rrdhost;
+ (void)host;
+
RRDDIM *rd;
rrdset_flag_clear(st, RRDSET_FLAG_HOMEGENEOUS_CHECK);
@@ -930,6 +932,8 @@ static inline size_t rrdset_done_interpolate(
size_t stored_entries = 0; // the number of entries we have stored in the db, during this call to rrdset_done()
usec_t first_ut = last_stored_ut, last_ut = 0;
+ (void)first_ut;
+
ssize_t iterations = (ssize_t)((now_collect_ut - last_stored_ut) / (update_every_ut));
if((now_collect_ut % (update_every_ut)) == 0) iterations++;