在 2025-6-4 16:31, Jan-Benedict Glaw 写道:
With automated builds (configured with --enable-languages=all --enable-languages=c,c++ --disable-gcov --disable-shared --disable-threads --target=i686-mingw32crt --without-headers), I see new warnings about unused parameters (`model` and `for_mov`) and variables (`dest`, `pic`, `tp_mode` and `type`), which are all only used in the #else part. That would be nice to cover (which would again allow to configure with --enable-werror-always .)
The suggestion is beneficial in general. Unfortunately I am afraid at the moment it's not possible to build GCC with `-Werror` for that target. We have been ignoring some warnings for many years, such as
1. unused parameters (there are some more in libstdc++ filesystem too) 2. non-member functions marked `__thiscall` (`__dest_thunk` in exception_ptr.h; i686 only) 3. comparison of `wchar_t` being >= 0 always yields true (it's unsigned on Windows) -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature