From d67d48ea74653c03421b49f3dbae156d66673ab1 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 26 Jul 2016 15:54:14 -0700 Subject: [PATCH] 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 --- folly/detail/ThreadLocalDetail.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_); -- 2.34.1