This patch does not change any code - it just turns on extra -Warnings,
and then turns them off again on a section-by-section basis with pragmas.

We discussed this in the community meeting, and the intent is

 - we can turn on -Werror with these warnings enabled
 - all *new* code that gets written and violates -Wconversion can be
   fixed on day 1

if we just turn on the warnings today, without -Werror, it's "500 lines"
that nobody looks at - so a new warning won't be noticed.  If we do not
turn on the warnings, nobody will see...

And yes, this is quite a bit future work to get rid of the pragmas again,
by fixing one source file after the other, or one group of warnings
(less-than-well defined API calls, like the "msglevel" thing).


I have stared at the patch, it is long, but does not do anything more
than push/pop "ignore -Wconversion warnings" (magic), and then enable
them globally.  BB and GHA say that this does not break any of our
testbeds either (v13 *did* break two special cases, namely LibreSSL
builds on macOS and pkcs11-helper builds - the former has been postponed
and a #pragma added, the second one has been fixed as it's only in
the unit test code).

Your patch has been applied to the master branch.

commit 3ac840942b54b7159d993c86842efa16a9abbd98
Author: Frank Lichtenheld
Date:   Wed Sep 24 14:27:47 2025 +0200

     Enable -Wconversion -Wno-sign-conversion by default

     Signed-off-by: Frank Lichtenheld <[email protected]>
     Acked-by: Gert Doering <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1168
     Message-Id: <[email protected]>
     URL: 
https://www.mail-archive.com/[email protected]/msg33181.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