This is technically a no-op, because C has quite clear definitions of
"how integer values are interpreted in a boolean context" - but MSVC
decided that "'if (pointer)' is fine, but 'bool = pointer' is no longer,
and needs to be warned-about, so -Werror fires"... 

Since without this, every -Werror build now breaks, it needs to go to
2.7 as well.   Tested via GHA build.

Your patch has been applied to the master and release/2.7 branch
("long-term compiler compatibility").

commit d8e22c5191904153e43d982327f5f0f2cfbe7d92 (master)
commit 1fa431bc9f25557fe04ffdac4d593fad8bfc040f (release/2.7)
Author: Razvan Cojocaru
Date:   Thu Nov 19 22:26:17 2026 +0100

     ssl: fix MSVC C4047 in key_method_2_read()

     Signed-off-by: Razvan Cojocaru <[email protected]>
     Acked-by: Lev Stipakov <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2220
     Message-Id: <[email protected]>
     URL: 
https://www.mail-archive.com/[email protected]/msg41689.html
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to