Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 6e049b2

Browse files
authored
Mark some unused things as unused to quiet warnings. (#157)
No functional change.
1 parent c64764c commit 6e049b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

opencensus/exporters/stats/prometheus/internal/prometheus_utils.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ void SetValue(int64_t value, prometheus::MetricType type,
8686
ABSL_ASSERT(false && "Invalid MetricType for int64 value.");
8787
}
8888
}
89+
8990
void SetValue(const opencensus::stats::Distribution& value,
90-
prometheus::MetricType type, prometheus::ClientMetric* metric) {
91+
prometheus::MetricType type ABSL_ATTRIBUTE_UNUSED,
92+
prometheus::ClientMetric* metric) {
9193
auto& histogram = metric->histogram;
9294
histogram.sample_count = value.count();
9395
histogram.sample_sum = value.count() * value.mean();

opencensus/exporters/trace/zipkin/internal/zipkin_exporter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void ZipkinExportHandler::Export(
365365

366366
void ZipkinExporter::Register(const ZipkinExporterOptions& options) {
367367
// Initialize libcurl. This MUST only be done once per process.
368-
static CurlEnv* curl_lib = new CurlEnv();
368+
static CurlEnv* curl_lib ABSL_ATTRIBUTE_UNUSED = new CurlEnv();
369369

370370
// Create new exporter.
371371
ZipkinExportHandler* handler = new ZipkinExportHandler(options);

0 commit comments

Comments
 (0)