On Fri, 28 Aug 2026, LIU Hao wrote:

在 2026-8-28 19:53, Martin Storsjö 写道:
Clang 23 added the -Wattribute-alias warning just like GCC has had
since GCC 8.

When the functions take pointers to different structs (even if they
may have identical members), Clang 23 warns about this mismatch under
-Wattribute-alias, while GCC doesn't.

A different kind of case is __mingw_strtold, which is aliased to
__strtod when long double and regular doubles have the same size.
This codepath hasn't been regularly built with GCC, but Clang now
warns about it.

Signed-off-by: Martin Storsjö <[email protected]>
---
  mingw-w64-crt/gdtoa/strtodnrp.c               | 5 +++++
  mingw-w64-crt/misc/ftime32.c                  | 3 +++
  mingw-w64-crt/misc/ftime64.c                  | 3 +++
  mingw-w64-crt/misc/ftw32.c                    | 4 ++++
  mingw-w64-crt/misc/ftw64i32.c                 | 4 ++++
  mingw-w64-crt/stdio/_wfindfirst32.c           | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_fstat32.c    | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_fstat64i32.c | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_stat32.c     | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_stat64i32.c  | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_wstat32.c    | 3 +++
  mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_fstat32.c     | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_fstat64i32.c  | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_stat32.c      | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_stat64i32.c   | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_wstat32.c     | 3 +++
  mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c  | 3 +++
  18 files changed, 58 insertions(+)

These look good to me, too.

Thanks, pushed these as well.

// Martin

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

Reply via email to