From e8b9216819cc0fffe9a9b9304ed011c476893797 Mon Sep 17 00:00:00 2001 From: owent Date: Sat, 10 May 2025 00:34:50 +0800 Subject: [PATCH 1/2] Fixes unused var --- examples/otlp/http_instrumented_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/otlp/http_instrumented_main.cc b/examples/otlp/http_instrumented_main.cc index 7c6068f596..22c2e698ef 100644 --- a/examples/otlp/http_instrumented_main.cc +++ b/examples/otlp/http_instrumented_main.cc @@ -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. From dee5941c5012139c5f161759a5deeb259a27f961 Mon Sep 17 00:00:00 2001 From: owent Date: Sat, 10 May 2025 01:15:52 +0800 Subject: [PATCH 2/2] Ignore IWYU in example --- examples/otlp/http_instrumented_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/otlp/http_instrumented_main.cc b/examples/otlp/http_instrumented_main.cc index 22c2e698ef..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