]> git.ipfire.org Git - thirdparty/openvpn.git/commit
work around false positive warning with mingw 12
authorHeiko Hund <heiko@ist.eigentlich.net>
Thu, 6 Jul 2023 17:19:22 +0000 (19:19 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 7 Jul 2023 06:10:26 +0000 (08:10 +0200)
commitd559affd313a8f995db15908887fbc8f16a24659
tree495211f508e12e1dab38d484e9e296fed841fb9c
parent22213a8834ba5ba5c9818015730edbf3766ad915
work around false positive warning with mingw 12

When cross compiling for Windows with Ubuntu 23.04 mingw complains about

  route.c:344:26: warning: â€˜special.S_un.S_addr’ may be used uninitialized

which is wrong technically. However the workaround isn't really
intrusive and while there are other warnings caused by libtool, the
cmake mingw build completes with -Werror now.

Change-Id: I8a0f59707570722eab41af2db76980ced04e6d54
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20230706171922.752429-1-heiko@ist.eigentlich.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26831.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c