From 5d3eeaa1a16dc9bcb3279e6503cc3489d644a82f Mon Sep 17 00:00:00 2001 From: Sinan Kaya Date: Sun, 17 Mar 2019 20:39:59 +0000 Subject: [PATCH] Correct ignored align attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/vm/threadpoolrequest.h:166:48: error: attribute ignored in declaration of ‘struct ManagedPerAppDomainTPCount::’ [-Werror=attributes] DECLSPEC_ALIGN(MAX_CACHE_LINE_SIZE) struct { ^ --- src/vm/threadpoolrequest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm/threadpoolrequest.h b/src/vm/threadpoolrequest.h index 17df7a79..0eb0375 100644 --- a/src/vm/threadpoolrequest.h +++ b/src/vm/threadpoolrequest.h @@ -163,7 +163,7 @@ public: private: ADID m_id; TPIndex m_index; - DECLSPEC_ALIGN(MAX_CACHE_LINE_SIZE) struct { + struct DECLSPEC_ALIGN(MAX_CACHE_LINE_SIZE) { BYTE m_padding1[MAX_CACHE_LINE_SIZE - sizeof(LONG)]; // Only use with VolatileLoad+VolatileStore+FastInterlockCompareExchange LONG m_numRequestsPending; @@ -256,7 +256,7 @@ public: private: SpinLock m_lock; ULONG m_NumRequests; - DECLSPEC_ALIGN(MAX_CACHE_LINE_SIZE) struct { + struct DECLSPEC_ALIGN(MAX_CACHE_LINE_SIZE) { BYTE m_padding1[MAX_CACHE_LINE_SIZE - sizeof(LONG)]; // Only use with VolatileLoad+VolatileStore+FastInterlockCompareExchange LONG m_outstandingThreadRequestCount; -- 2.7.4