summaryrefslogtreecommitdiff
path: root/test/atomictest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 17:10:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 17:10:42 +0100
commitd422bfddee23069071a5d911ebca73f6c0b403ed (patch)
treece10ee6112d07c4f4fa385797ab5c862666af50d /test/atomictest.cc
parent796882bcc5314c0bb095fcad0a6ffa30a6122bae (diff)
Fix warnings reported by clang.
Diffstat (limited to 'test/atomictest.cc')
-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() {