From: "cron2 (Code Review)" Date: Thu, 9 Oct 2025 14:49:09 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <6530105498efb3efd37405db8c6ea830846abe66-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="/R4w12GDit8="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: lzo: Fix conversion warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --/R4w12GDit8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1260?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: lzo: Fix conversion warning ...................................................................... lzo: Fix conversion warning We already have an assert ensuring the value is sane, so just add the cast. Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260 Message-Id: <20251008170149.10301-1-gert@...1296...> URL: https://sourceforge.net/p/openvpn/mailman/message/59244106/ Signed-off-by: Gert Doering --- M src/openvpn/lzo.c 1 file changed, 1 insertion(+), 10 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/1260/2 diff --git a/src/openvpn/lzo.c b/src/openvpn/lzo.c index 8daaec0..8307b59 100644 --- a/src/openvpn/lzo.c +++ b/src/openvpn/lzo.c @@ -72,11 +72,6 @@ *header =3D NO_COMPRESS_BYTE; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - static void lzo_decompress(struct buffer *buf, struct buffer work, struct compress_con= text *compctx, const struct frame *frame) @@ -107,7 +102,7 @@ } ASSERT(buf_safe(&work, zlen)); - work.len =3D zlen; + work.len =3D (int)zlen; dmsg(D_COMP, "LZO decompress %d -> %d", buf->len, work.len); compctx->pre_decompress +=3D buf->len; @@ -126,10 +121,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - const struct compress_alg lzo_alg =3D { "lzo", lzo_compress_init, lzo_comp= ress_uninit, lzo_compress, lzo_decompress }; #endif /* ENABLE_LZO */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1260?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: I4a5c46f321709c83a4a921366630fb8e02834701 Gerrit-Change-Number: 1260 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --/R4w12GDit8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View Change

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

lzo: Fix conversion warning

= We already have an assert ensuring the value is sane,
so just add the ca= st.

Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701
Signed-o= ff-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Gert Doering= <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvp= n/+/1260
Message-Id: <20251008170149.10301-1-gert@...1296...>
U= RL: https://sourceforge.net/p/openvpn/mailman/message/59244106/
Signed-o= ff-by: Gert Doering <gert@...1296...>
---
M src/openvpn/lzo.c1 file changed, 1 insertion(+), 10 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/1260/2<=
/pre>
-#if defined(__=
GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"
-#endif
-
static void
lzo_decompress(struct buffer *buf, struct buffer work, struct compress= _context *compctx,

const struct frame *fram= e)
@@ -107,7 +102,7 @@
}
ASSERT(buf_safe(&work, zlen));=
- work.len =3D zlen;
+ work.len =3D = (int)zlen;

dmsg(D_COMP, "LZ= O decompress %d -> %d", buf->len, work.len);
= compctx->pre_decompress +=3D buf->len;
@@ -126,= 10 +121,6 @@
}
}

-#if defined(__GNUC__) ||= defined(__clang__)
-#p= ragma GCC diagnostic pop
-
<= span> const struct compress_alg lzo_alg =3D { "lzo", lzo_compress= _init, lzo_compress_uninit, lzo_compress,

= lzo_decompress };
#endif /* ENABLE_L= ZO */

To view, visit change 1260. To unsubs= cribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4a5c46f321709c83a4a92136663= 0fb8e02834701
Gerrit-Change-Number: 1260
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --/R4w12GDit8=--