From fc22583b1174c9b5e6d0364240431eaca932440d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Dec 2017 10:30:44 +0100 Subject: Fix various warnings --- test/thread_test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/thread_test.cpp') diff --git a/test/thread_test.cpp b/test/thread_test.cpp index 3d1fc8b..9012b4c 100644 --- a/test/thread_test.cpp +++ b/test/thread_test.cpp @@ -23,10 +23,12 @@ using namespace std; using namespace Raul; +namespace { + thread_local int var(0); std::atomic n_errors(0); -static void +void wait_for_sem(Semaphore* sem) { var = 41; @@ -40,6 +42,8 @@ wait_for_sem(Semaphore* sem) } } +} // namespace + int main() { -- cgit v1.2.1