On Mon, 24 Nov 2025, LIU Hao wrote:

在 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 ?

Thanks, fixed.

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.

Thanks; I pushed this whole set with this change then.

Now we should both be, and stay, warning free!

// Martin

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

Reply via email to