From: Pádraig Brady Date: Thu, 2 Feb 2017 19:35:54 +0000 (-0800) Subject: Fix build failure with GCC 5 X-Git-Tag: v2017.03.06.00~60 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=30db459fbc305767647753f41f4cc63c5c8ba3b9;p=folly.git Fix build failure with GCC 5 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 --- diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index 5fb43faa..dcfc058a 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -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) {