From: Misha Shneerson Date: Tue, 2 Apr 2013 19:14:41 +0000 (-0700) Subject: Suppress unused variable warning X-Git-Tag: v0.22.0~1018 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a25e59da9e012119124e28ceca9bfabc6aaa418b;p=folly.git Suppress unused variable warning 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 --- diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index 0cc9193b..c751d209 100644 --- 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()); + (void)constructed; // suppress unused warning return *inst; }