From 1e33bb595c2142ee65f87b9f2a671f27d07bad68 Mon Sep 17 00:00:00 2001 From: WenTao Ou Date: Sat, 10 May 2025 02:40:28 +0800 Subject: [PATCH] Fixes unused var (#3397) * Fixes unused var * Ignore IWYU in example --- examples/otlp/http_instrumented_main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/otlp/http_instrumented_main.cc b/examples/otlp/http_instrumented_main.cc index 7c6068f596..5084a6a5f6 100644 --- a/examples/otlp/http_instrumented_main.cc +++ b/examples/otlp/http_instrumented_main.cc @@ -4,7 +4,7 @@ #include #include #include -#include +#include // IWYU pragma: keep #include #include @@ -58,10 +58,10 @@ namespace { -std::mutex serialize; - #ifdef ENABLE_THREAD_INSTRUMENTATION_PREVIEW +std::mutex serialize; + /** The purpose of MyThreadInstrumentation is to demonstrate how notifications are delivered to the application.