From 8bfe3976d909fcdfda047f83b8d7726d4da917fe Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Fri, 10 Jan 2025 13:37:26 -0500 Subject: [PATCH] util: cpu_detect.c Fix warning C5274: behavior change: _Alignas no longer applies to the type '' (only applies to declared data objects) Reviewed-By: Jesse Natalie Reviewed-by: Jesse Natalie Part-of: --- src/util/u_cpu_detect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index e103fb630e6..139b3c4766a 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -373,11 +373,12 @@ UTIL_ALIGN_STACK static inline bool sse2_has_daz(void) { - alignas(16) struct { + struct area_t { uint32_t pad1[7]; uint32_t mxcsr_mask; uint32_t pad2[128-8]; - } fxarea; + }; + alignas(16) struct area_t fxarea; fxarea.mxcsr_mask = 0; #if DETECT_CC_GCC