Module: check_mk
Branch: master
Commit: 85f5a7311835bb777d87fd9b157be618ccfb1e91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85f5a7311835bb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jan 26 11:59:39 2016 +0100
Make scan-build happy, a bit unclear if this is a real issue.
---
livestatus/src/PerfdataAggregator.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/livestatus/src/PerfdataAggregator.cc b/livestatus/src/PerfdataAggregator.cc
index 82d16f7..589b7bd 100644
--- a/livestatus/src/PerfdataAggregator.cc
+++ b/livestatus/src/PerfdataAggregator.cc
@@ -140,6 +140,10 @@ void PerfdataAggregator::output(Query *q)
else
value = sqrt((it->second._sumq - (it->second._aggr *
it->second._aggr) / it->second._count)/(it->second._count - 1));
break;
+ default:
+ value = 0; // should never happen, but the real problem is that
+ // _operation should beetter be a scoped enumeration.
+ break;
}
snprintf(format, sizeof(format), "%s=%.8f", it->first.c_str(),
value);
if (it != _aggr.begin())