Skip to content

Commit 734f2ad

Browse files
committed
Use anonymous namespace for local linkage
1 parent 2e8448c commit 734f2ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/logging.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111

1212
#include <osmium/thread/util.hpp>
1313

14+
namespace {
15+
1416
thread_local unsigned int this_thread_num = 0;
1517

1618
/// Global logger singleton
1719
logger the_logger{};
1820

21+
} // anonymous namespace
22+
1923
/// Access the global logger singleton
2024
logger &get_logger() noexcept { return the_logger; }
2125

0 commit comments

Comments
 (0)