Change in openvpn[master]: lzo: Fix conversion warning
A message that is not in the archive (sent off-list or not yet received): gerrit.1759942426000.I4a5c46f321709c83a4a921366630fb8e02834701@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email
to review the following change.
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.
---
M src/openvpn/lzo.c
1 file changed, 1 insertion(+), 10 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/1260/1
src/openvpn/lzo.c +1 -10
@@ -72,11 +72,6 @@ *header =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_context *compctx,const struct frame *frame)
@@ -107,7 +102,7 @@ }ASSERT (buf_safe (&work, zlen)); - work.len = zlen; + work.len = (int )zlen;dmsg (D_COMP ,"LZO decompress %d -> %d" , buf->len, work.len); compctx->pre_decompress += buf->len;
@@ -126,10 +121,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -const struct compress_alg lzo_alg = {"lzo" , lzo_compress_init, lzo_compress_uninit, lzo_compress, lzo_decompress };#endif /* ENABLE_LZO */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701
Gerrit-Change-Number: 1260
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email )
Change subject: lzo: Fix conversion warning
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701
Gerrit-Change-Number: 1260
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 08 Oct 2025 17:01:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 lzo: Fix conversion warning
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
We already have an assert ensuring the value is sane, so just add the cast.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/lzo.c +1 -10
@@ -72,11 +72,6 @@ *header =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_context *compctx,const struct frame *frame)
@@ -107,7 +102,7 @@ }ASSERT (buf_safe (&work, zlen)); - work.len = zlen; + work.len = (int )zlen;dmsg (D_COMP ,"LZO decompress %d -> %d" , buf->len, work.len); compctx->pre_decompress += buf->len;
@@ -126,10 +121,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -const struct compress_alg lzo_alg = {"lzo" , lzo_compress_init, lzo_compress_uninit, lzo_compress, lzo_decompress };#endif /* ENABLE_LZO */
[Openvpn-devel] [PATCH applied] Re: lzo: Fix conversion warning
Trivial and straightforward enough. BB happy, did not explicitly test more.
Your patch has been applied to the master branch.
commit abb9770f099e5d387f15800a5244c911cf747557
Author: Frank Lichtenheld Date: Wed Oct 8 19:01:44 2025 +0200
lzo: Fix conversion warning
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59244106/
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email )
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.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59244106/
---
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
src/openvpn/lzo.c +1 -10
@@ -72,11 +72,6 @@ *header =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_context *compctx,const struct frame *frame)
@@ -107,7 +102,7 @@ }ASSERT (buf_safe (&work, zlen)); - work.len = zlen; + work.len = (int )zlen;dmsg (D_COMP ,"LZO decompress %d -> %d" , buf->len, work.len); compctx->pre_decompress += buf->len;
@@ -126,10 +121,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -const struct compress_alg lzo_alg = {"lzo" , lzo_compress_init, lzo_compress_uninit, lzo_compress, lzo_decompress };#endif /* ENABLE_LZO */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701
Gerrit-Change-Number: 1260
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email )
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.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1260
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59244106/
---
M src/openvpn/lzo.c
1 file changed, 1 insertion(+), 10 deletions(-)
src/openvpn/lzo.c +1 -10
@@ -72,11 +72,6 @@ *header =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_context *compctx,const struct frame *frame)
@@ -107,7 +102,7 @@ }ASSERT (buf_safe (&work, zlen)); - work.len = zlen; + work.len = (int )zlen;dmsg (D_COMP ,"LZO decompress %d -> %d" , buf->len, work.len); compctx->pre_decompress += buf->len;
@@ -126,10 +121,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -const struct compress_alg lzo_alg = {"lzo" , lzo_compress_init, lzo_compress_uninit, lzo_compress, lzo_decompress };#endif /* ENABLE_LZO */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1260?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4a5c46f321709c83a4a921366630fb8e02834701
Gerrit-Change-Number: 1260
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>