summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
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;