Fix build failure with GCC 5
authorPádraig Brady <pbrady@fb.com>
Thu, 2 Feb 2017 19:35:54 +0000 (11:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 2 Feb 2017 19:47:53 +0000 (11:47 -0800)
Summary:
GCC 5 doesn't recognize LOG(FATAL) as [[noreturn]],
so remove [[noreturn]] to avoid that warning and build failure.

Reviewed By: yfeldblum

Differential Revision: D4484625

fbshipit-source-id: ca129ca3a52239becd7d80f99107e64745bf8838

folly/detail/ThreadLocalDetail.h

index 5fb43faa7870ef4f17b0f80b588e23de1c55e899..dcfc058ac61a2259773c46b501e9ae53f4557899 100644 (file)
@@ -257,7 +257,7 @@ struct StaticMetaBase {
   StaticMetaBase(ThreadEntry* (*threadEntry)(), bool strict);
 
   [[noreturn]] ~StaticMetaBase() {
-    LOG(FATAL) << "StaticMeta lives forever!";
+    folly::assume_unreachable();
   }
 
   void push_back(ThreadEntry* t) {