Change in openvpn[master]: reliable: Avoid conversion warning in reliable_send_timeout
A message that is not in the archive (sent off-list or not yet received): gerrit.1768911587000.Iac4af315c6d7798f09a27383fc0a755a874b9881@...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/+/1480?usp=email
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.
---
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
src/openvpn/reliable.c +1 -10
@@ -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 =min_int (ret, e->next_try - local_now); + ret =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 active. */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1480?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: Iac4af315c6d7798f09a27383fc0a755a874b9881
Gerrit-Change-Number: 1480
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>