util: cpu_detect.c Fix warning C5274: behavior change: _Alignas no longer applies to the type '<unnamed-tag>' (only applies to declared data objects)

Reviewed-By: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32979>
This commit is contained in:
Sil Vilerino 2025-01-10 13:37:26 -05:00 committed by Marge Bot
parent 819558903c
commit 8bfe3976d9

View file

@ -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