From: "cron2 (Code Review)" Date: Wed, 4 Mar 2026 16:48:20 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="RErmuY1KJmw="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: argv: Fix one type to avoid sign-compare warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --RErmuY1KJmw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#6) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1494?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: argv: Fix one type to avoid sign-compare warning ...................................................................... argv: Fix one type to avoid sign-compare warning len is already int, no need to throw another type into the mix. Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494 Message-Id: <20260304144059.2518-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 891.html Signed-off-by: Gert Doering --- M src/openvpn/argv.c 1 file changed, 1 insertion(+), 10 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/94/1494/6 diff --git a/src/openvpn/argv.c b/src/openvpn/argv.c index b5d9603..6a5d92e 100644 --- a/src/openvpn/argv.c +++ b/src/openvpn/argv.c @@ -263,11 +263,6 @@ gc_free(&gc); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif - /** * Prepares argv format string for further processing * @@ -389,7 +384,7 @@ * Do the actual vsnprintf() operation, which expands the format * string with the provided arguments. */ - size_t size =3D len + 1; + int size =3D len + 1; char *buf =3D gc_malloc(size, false, &argres->gc); len =3D vsnprintf(buf, size, f, arglist); if (len < 0 || len >=3D size) @@ -423,10 +418,6 @@ return res; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - /** * printf() variant which populates a struct argv. It processes the * format string with the provided arguments. For each space separator f= ound -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1494?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476 Gerrit-Change-Number: 1494 Gerrit-PatchSet: 6 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --RErmuY1KJmw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #6 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by plaisthos

argv: Fix one type to avoid sig=
n-compare warning

len is already int, no need to throw another
ty= pe into the mix.

Change-Id: Ida8e587a095bdfb821ee0a4783633f026d31047= 6
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by:= Arne Schwabe <arne-openvpn@...1227...>
Gerrit URL: https://gerrit= .openvpn.net/c/openvpn/+/1494
Message-Id: <20260304144059.2518-1-gert= @...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1466...= urceforge.net/msg35891.html
Signed-off-by: Gert Doering <gert@...1726...= ...>
---
M src/openvpn/argv.c
1 file changed, 1 insertion(+), 1= 0 deletions(-)

git pull ssh://gerrit.openvpn.net=
:29418/openvpn refs/changes/94/1494/6
diff --git a/src/openvpn/argv=
.c b/src/openvpn/argv.c
index b5d9603..6a5d92e 100644
--- a/src/openvpn/argv.c
+++ b/src/openvpn/argv.= c
@@ -263,11 +263,6 @@
gc_free(&gc= );
}

-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
<= br>-#pragma GCC diagnostic ignore= d "-Wsign-compare"
-#endif
-<= br> /**
* Prepares argv format string for further = processing
*
@@ -389,7 +384,7 @@ * Do the actual vsnprintf() operation, which expands the for= mat
* string with the provided arguments.
= */
- siz= e_t size =3D len + 1;
+ int size =3D len + 1;
char *buf =3D gc_malloc(si= ze, false, &argres->gc);
len =3D vsnprintf(buf,= size, f, arglist);
if (len < 0 || len >=3D size= )
@@ -423,10 +418,6 @@
return res;
}

-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif

-
/**
* printf()= variant which populates a struct argv. It processes the
= * format string with the provided arguments. For each space separator fo= und

To view, visit change 1494. To unsubscr= ibe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ida8e587a095bdfb821ee0a47836= 33f026d310476
Gerrit-Change-Number: 1494
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --RErmuY1KJmw=--