Skip to content

Commit 1e33bb5

Browse files
authored
Fixes unused var (open-telemetry#3397)
* Fixes unused var * Ignore IWYU in example
1 parent 92dd28c commit 1e33bb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/otlp/http_instrumented_main.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <chrono>
55
#include <iostream>
66
#include <memory>
7-
#include <mutex>
7+
#include <mutex> // IWYU pragma: keep
88
#include <string>
99
#include <utility>
1010

@@ -58,10 +58,10 @@
5858
namespace
5959
{
6060

61-
std::mutex serialize;
62-
6361
#ifdef ENABLE_THREAD_INSTRUMENTATION_PREVIEW
6462

63+
std::mutex serialize;
64+
6565
/**
6666
The purpose of MyThreadInstrumentation is to demonstrate
6767
how notifications are delivered to the application.

0 commit comments

Comments
 (0)