Suppress unused variable warning
authorMisha Shneerson <mshneer@fb.com>
Tue, 2 Apr 2013 19:14:41 +0000 (12:14 -0700)
committerJordan 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

index 0cc9193b0541fc9fbab17a34c602f3348de6dcf5..c751d209e490e72378997c5418fdf816b0c144c3 100644 (file)
@@ -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;
   }