summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/atomictest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/atomictest.cc b/test/atomictest.cc
index aa1f12a..89c0295 100644
--- a/test/atomictest.cc
+++ b/test/atomictest.cc
@@ -69,6 +69,7 @@ class AtomicTest
void podAtomicCanBeDefaultInitialized() {
Atomic<int> i;
// note: i is initialized with garbage
+ (void)i; // prevent compiler 'unused' warning
}
void nonPodAtomicCanBeDefaultInitialized() {