在 2025-11-24 21:44, Martin Storsjö 写道:
This avoids warnings like this, when building with Clang:

     ../math/fmal.c:34:3: warning: packed attribute is unnecessary for 'struct 
x87reg_::(anonymous at ../math/fmal.c:34:3)' [-Wpacked]

There seem to be some discrepancy between GCC and Clang, for

                        ^ discrepancies ?

which cases they warn about where the packed attribute is
unnecessary.

While the packed attribute can be removed in these cases without
actually affecting the layout of the bitfield structs/unions,
removing the attribute can change the size and alignment of the
struct. Neither of them should make any difference in these
cases though.

But as this warning isn't included in GCC/Clang's -Wextra, just
avoid manually adding it to our list of warning options.

Signed-off-by: Martin Storsjö <[email protected]>
---
  mingw-w64-crt/configure.ac | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

The changes look good to me.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to