summaryrefslogtreecommitdiffstats
path: root/test/thread_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-16 10:30:44 +0100
committerDavid Robillard <d@drobilla.net>2017-12-16 10:30:44 +0100
commitfc22583b1174c9b5e6d0364240431eaca932440d (patch)
tree4d7ac03769a3860c07563621197825cfab14244e /test/thread_test.cpp
parent4db870b2b20b0a608ec0283139056b836c5b1624 (diff)
downloadraul-fc22583b1174c9b5e6d0364240431eaca932440d.tar.gz
raul-fc22583b1174c9b5e6d0364240431eaca932440d.tar.bz2
raul-fc22583b1174c9b5e6d0364240431eaca932440d.zip
Fix various warnings
Diffstat (limited to 'test/thread_test.cpp')
-rw-r--r--test/thread_test.cpp6
1 files changed, 5 insertions, 1 deletions
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<int> 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()
{