From a25e59da9e012119124e28ceca9bfabc6aaa418b Mon Sep 17 00:00:00 2001 From: Misha Shneerson Date: Tue, 2 Apr 2013 12:14:41 -0700 Subject: [PATCH] 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 --- folly/detail/ThreadLocalDetail.h | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1