From: "flichtenheld (Code Review)" Date: Tue, 20 Jan 2026 12:19:50 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <0c5febadbaf32966026b319129a40816fc83ebce-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="VCzoEmnO/Vs="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: reliable: Avoid conversion warning in reliable_send_timeout List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --VCzoEmnO/Vs= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/+/1480?usp=3Demail to review the following change. Change subject: reliable: Avoid conversion warning in reliable_send_timeout ...................................................................... reliable: Avoid conversion warning in reliable_send_timeout It is not realistic that this produced big values and we already discard negative values. So just use whatever we get. Change-Id: Iac4af315c6d7798f09a27383fc0a755a874b9881 Signed-off-by: Frank Lichtenheld --- M src/openvpn/reliable.c 1 file changed, 1 insertion(+), 10 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/1480/1 diff --git a/src/openvpn/reliable.c b/src/openvpn/reliable.c index 52adacf..690e50d 100644 --- a/src/openvpn/reliable.c +++ b/src/openvpn/reliable.c @@ -687,11 +687,6 @@ } } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - /* in how many seconds should we wake up to check for timeout */ /* if we return BIG_TIMEOUT, nothing to wait for */ interval_t @@ -713,7 +708,7 @@ } else { - ret =3D min_int(ret, e->next_try - local_now); + ret =3D min_int(ret, (int)(e->next_try - local_now)); } } } @@ -724,10 +719,6 @@ return ret; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - /* * Enable an incoming buffer previously returned by a get function as acti= ve. */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1480?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Iac4af315c6d7798f09a27383fc0a755a874b9881 Gerrit-Change-Number: 1480 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --VCzoEmnO/Vs= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

reliable: Avoid conversion warning in relia=
ble_send_timeout

It is not realistic that this produced big valuesand we already discard negative values. So just use
whatever we get.
Change-Id: Iac4af315c6d7798f09a27383fc0a755a874b9881
Signed-off-by= : Frank Lichtenheld <frank@...2641...>
---
M src/openvpn/reliab= le.c
1 file changed, 1 insertion(+), 10 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/148=
0/1
diff --git a/src/openvpn/reliable.c b/src/openvpn/reliable.c
index 52adacf..690e50d 100644
--- a/src/openv= pn/reliable.c
+++ b/src/openvpn/reliable.c
= @@ -687,11 +687,6 @@
}
}

-#if defined(__GN= UC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"<= br>-#endif
-
/* in how many seconds sh= ould we wake up to check for timeout */
/* if we return BI= G_TIMEOUT, nothing to wait for */
interval_t
@@ -713,7 +708,7 @@
}
= else
{
- ret =3D min_int(ret, e->next_try -= local_now);
+ = ret =3D min_int(ret, (int)(e->next_try - local_now)); }
}
}

@@ -724,10 +719,6 @@
return ret; }

-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif
-
/*
* Enable an incom= ing buffer previously returned by a get function as active.
*/

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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iac4af315c6d7798f09a27383fc0= a755a874b9881
Gerrit-Change-Number: 1480
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --VCzoEmnO/Vs=--