<html><head></head><body>This is as bad, if not worse, in the win32 script that in the common configure.<br><br>Besides, Windows has in-built incorrect pointer types, so that's making sure it won't work. E.g. haphazardly using char or uchar instead of void for binary I/O functions.<br><br><div class="gmail_quote">Le 3 octobre 2019 09:06:09 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">And on missing field initializers in structures.<br><br>Mismatching pointers are usually a result of using the incorrect pointer and<br>might trigger crashes.<br><br>Missing initializers are useful for structures of callbacks, to make sure a new<br>callback is not missing by accident. It's always possible to put NULL, on<br>purpose, knowingly.<br><br>Both flags produce no error on win32/win64 with clang or gcc.<hr> extras/package/win32/build.sh | 4 +++-<br> 1 file changed, 3 insertions(+), 1 deletion(-)<br><br>diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh<br>index 5c1c7809900..38d4ecb1469 100755<br>--- a/extras/package/win32/build.sh<br>+++ b/extras/package/win32/build.sh<br>@@ -168,7 +168,9 @@ if [ ! -z "$WITH_PDB" ]; then<br> CONFIGFLAGS="$CONFIGFLAGS --enable-pdb"<br> fi<br> <br>-../extras/package/win32/configure.sh --host=$TRIPLET $CONFIGFLAGS<br>+../extras/package/win32/configure.sh --host=$TRIPLET $CONFIGFLAGS \<br>+ CFLAGS="$CFLAGS -Werror=incompatible-pointer-types -Werror=missing-field-initializers" \<br>+ CXXFLAGS="$CXXFLAGS -Werror=incompatible-pointer-types -Werror=missing-field-initializers"<br> <br> info "Compiling"<br> make -j$JOBS</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>