projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix compiler warnings from gcc-4.9 + -Wunused-variable
[folly.git]
/
folly
/
test
/
SynchronizedTestLib-inl.h
diff --git
a/folly/test/SynchronizedTestLib-inl.h
b/folly/test/SynchronizedTestLib-inl.h
index bee27f9a5cf5e6b47d1a3ba6d33f8d430b81f3fa..ef4045c8c4242b8d4e0e511ac7f627cc138f1ad4 100644
(file)
--- a/
folly/test/SynchronizedTestLib-inl.h
+++ b/
folly/test/SynchronizedTestLib-inl.h
@@
-188,12
+188,12
@@
template <class Mutex> void testDualLockingWithConst() {
if (i & 1) {
SYNCHRONIZED_DUAL (v, pv, m, pm) {
-
size_t s =
m.size();
+
(void)
m.size();
v.push_back(i);
}
} else {
SYNCHRONIZED_DUAL (m, pm, v, pv) {
-
size_t s =
m.size();
+
(void)
m.size();
v.push_back(i);
}
}