summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-02-10 16:50:40 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-02-10 16:50:40 +0100
commit0e86cbbd23fcaad6780c354342bff6cdeffffe72 (patch)
treee933d6a621a25fdafa72998ed9519299e82725a8 /metrics
parent59cc6aa3fb18f4c531f9eb988cbb6820d216b2f6 (diff)
Eliminate clang warning in metrics.
Diffstat (limited to 'metrics')
-rw-r--r--metrics/src/vespa/metrics/xmlwriter.cpp4
-rw-r--r--metrics/src/vespa/metrics/xmlwriter.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/metrics/src/vespa/metrics/xmlwriter.cpp b/metrics/src/vespa/metrics/xmlwriter.cpp
index 90b25621cf8..25bc4e23d96 100644
--- a/metrics/src/vespa/metrics/xmlwriter.cpp
+++ b/metrics/src/vespa/metrics/xmlwriter.cpp
@@ -11,8 +11,8 @@
namespace metrics {
XmlWriter::XmlWriter(vespalib::xml::XmlOutputStream& xos,
- uint32_t period, int verbosity)
- : _period(period), _xos(xos), _verbosity(verbosity) {}
+ [[maybe_unused]] uint32_t period, int verbosity)
+ : _xos(xos), _verbosity(verbosity) {}
bool
XmlWriter::visitSnapshot(const MetricSnapshot& snapshot)
diff --git a/metrics/src/vespa/metrics/xmlwriter.h b/metrics/src/vespa/metrics/xmlwriter.h
index fbaf59d2ecd..31feb18bae8 100644
--- a/metrics/src/vespa/metrics/xmlwriter.h
+++ b/metrics/src/vespa/metrics/xmlwriter.h
@@ -8,7 +8,6 @@
namespace metrics {
class XmlWriter : public MetricVisitor {
- uint32_t _period;
vespalib::xml::XmlOutputStream& _xos;
int _verbosity;