summaryrefslogtreecommitdiffstats
path: root/ml/Host.h
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2022-02-24 20:12:09 +0200
committerGitHub <noreply@github.com>2022-02-24 20:12:09 +0200
commitbb9dc984ef4676483858b463536bb3d0ffff496e (patch)
tree619353025fd4d3a7afdbbcc4320201c9efcf90b0 /ml/Host.h
parentdf3e7343e3d5c672c55459c132bc88949465b6fc (diff)
Fix builds where HAVE_C___ATOMIC is not defined. (#12240)
Diffstat (limited to 'ml/Host.h')
-rw-r--r--ml/Host.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ml/Host.h b/ml/Host.h
index ee0da6a1bc..574b18aa36 100644
--- a/ml/Host.h
+++ b/ml/Host.h
@@ -31,7 +31,9 @@ public:
RRDSET_TYPE_LINE
);
- rrdset_flag_set(AnomalyRateRS, RRDSET_FLAG_HIDDEN);
+ AnomalyRateRS->flags = static_cast<RRDSET_FLAGS>(
+ static_cast<int>(AnomalyRateRS->flags) | RRDSET_FLAG_HIDDEN
+ );
}
RRDHOST *getRH() { return RH; }