From: Christopher Dykes Date: Tue, 26 Jul 2016 22:54:14 +0000 (-0700) Subject: Consistently reference an internal struct as a struct X-Git-Tag: v2016.07.29.00~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d67d48ea74653c03421b49f3dbae156d66673ab1;p=folly.git Consistently reference an internal struct as a struct Summary: That way the mismatch warning can stay as an error. Reviewed By: yfeldblum Differential Revision: D3613761 fbshipit-source-id: 6e0ee42c658d95786f578f6500aba113c00d8f77 --- diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index 275271f4..6aaccc2b 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -152,7 +152,7 @@ struct ThreadEntry { constexpr uint32_t kEntryIDInvalid = std::numeric_limits::max(); -class PthreadKeyUnregisterTester; +struct PthreadKeyUnregisterTester; /** * We want to disable onThreadExit call at the end of shutdown, we don't care @@ -193,7 +193,7 @@ class PthreadKeyUnregister { * usage. */ constexpr PthreadKeyUnregister() : lock_(), size_(0), keys_() { } - friend class folly::threadlocal_detail::PthreadKeyUnregisterTester; + friend struct folly::threadlocal_detail::PthreadKeyUnregisterTester; void registerKeyImpl(pthread_key_t key) { MSLGuard lg(lock_);