projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f528c7
)
Suppress unused variable warning
author
Misha Shneerson
<mshneer@fb.com>
Tue, 2 Apr 2013 19:14:41 +0000
(12:14 -0700)
committer
Jordan DeLong
<jdelong@fb.com>
Sun, 21 Apr 2013 20:20:05 +0000
(13:20 -0700)
Summary:
HPHP compiler treats warnings as errors and the unused 'constuctor'
variable breaks the build.
Test Plan: Build
Reviewed By: simpkins@fb.com
FB internal diff:
D759559
folly/detail/ThreadLocalDetail.h
patch
|
blob
|
history
diff --git
a/folly/detail/ThreadLocalDetail.h
b/folly/detail/ThreadLocalDetail.h
index 0cc9193b0541fc9fbab17a34c602f3348de6dcf5..c751d209e490e72378997c5418fdf816b0c144c3 100644
(file)
--- a/
folly/detail/ThreadLocalDetail.h
+++ b/
folly/detail/ThreadLocalDetail.h
@@
-145,6
+145,7
@@
struct StaticMeta {
// Leak it on exit, there's only one per process and we don't have to
// worry about synchronization with exiting threads.
static bool constructed = (inst = new StaticMeta<Tag>());
+ (void)constructed; // suppress unused warning
return *inst;
}