mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
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:
parent
819558903c
commit
8bfe3976d9
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue