On the master (9fcdb9f3a044330d3d7515fa35709102c98534d2) we have -Wno-error=return-type for MinGW-w64, to allow us successfully cross-compile Windows release binaries which also being configured with --enable-werror.
Although, even during daily cross-compiling (which is usual for me) such warnings are noisy, distracting and useless, as all of them are false-positive. Disabling them for MinGW-w64 looks safe now because code quality is checked by other compilers, including MSVC. Also, after moving to std::filesystem, we have much less Windows-specific code paths.