From: "cron2 (Code Review)" Date: Thu, 26 Dec 2024 11:45:35 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XMMHFnItCQQ="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Add building/testing with msbuild and the clang compiler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: stipa , flichtenheld , openvpn-devel --XMMHFnItCQQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/751?usp=3Demail ) 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 t= ell 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=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I43d84034f3e920a45731c4aab4f851a60921290d Gerrit-Change-Number: 751 Gerrit-PatchSet: 5 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-CC: stipa Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Thu, 26 Dec 2024 11:45:35 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --XMMHFnItCQQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

View C= hange

1 comment:

    <= li style=3D"margin: 0; padding: 0;">

    Patchset:

    • Patch Set #5:

      Well, that code block is testing correctness of `s= nprintf()`, 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 result= s 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 p= ragma/option */
      #if defined(__clang__)
      #pragma clang diagnostic push<= br>#pragma clang diagnostic ignored "-Wunknown-warning-option"#endif
      #pragma GCC diagnostic push
      #pragma GCC diagnostic ignored &q= uot;-Wformat-truncation"
      #endif
      ```

= To view, visit change 751. To unsubscribe, or for help writing mail filters, vis= it settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I43d84034f3e920a45731c4aab4f= 851a60921290d
Gerrit-Change-Number: 751
Gerrit-PatchSet: 5
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: stipa <lstipakov@...277...> <= /div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Thu, 26 Dec 2024 11:45:35= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--XMMHFnItCQQ=--