Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/751?usp=email )
Change subject: Add building/testing with msbuild and the clang compiler ...................................................................... Patch Set 5: (1 comment) Patchset: PS5: Well, that code block is testing correctness of `snprintf()`, which it can only do by intentionally overflowing and checking the results. We try to tell that to the compiler, but it seems clang 18.1 needs more help ``` /* Instead of trying to trick the compiler here, disable the warnings * for this unit test. We know that the results will be truncated * and we want to test that */ #if defined(__GNUC__) /* some clang version do not understand -Wformat-truncation, so ignore the * warning to avoid warnings/errors (-Werror) about unknown pragma/option */ #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunknown-warning-option" #endif #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-truncation" #endif ``` -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/751?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I43d84034f3e920a45731c4aab4f851a60921290d Gerrit-Change-Number: 751 Gerrit-PatchSet: 5 Gerrit-Owner: plaisthos <arne-open...@rfc2549.org> Gerrit-Reviewer: flichtenheld <fr...@lichtenheld.com> Gerrit-CC: cron2 <g...@greenie.muc.de> Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net> Gerrit-CC: stipa <lstipa...@gmail.com> Gerrit-Attention: plaisthos <arne-open...@rfc2549.org> Gerrit-Attention: flichtenheld <fr...@lichtenheld.com> Gerrit-Comment-Date: Thu, 26 Dec 2024 11:45:35 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel