Gert Doering has uploaded a new patch set (#3) to the change originally created 
by Frank Lichtenheld. ( https://gerrit.openvpn.net/c/openvpn/+/2379?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by Răzvan Cojocaru


Change subject: fdmisc: Avoid sign conversion warning on Windows
......................................................................

fdmisc: Avoid sign conversion warning on Windows

ioctlsocket takes a long but at least MinGW
defines the ioctl numbers as unsigned long,
so a cast is required.

Change-Id: Ie5d209e05b6882ef679e5c5d95711c8f416515d6
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Razvan Cojocaru <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2379
Message-Id: <[email protected]>
URL: 
https://www.mail-archive.com/[email protected]/msg42325.html
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpn/fdmisc.c
1 file changed, 1 insertion(+), 10 deletions(-)


  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/2379/3

diff --git a/src/openvpn/fdmisc.c b/src/openvpn/fdmisc.c
index e715964..e9d310f 100644
--- a/src/openvpn/fdmisc.c
+++ b/src/openvpn/fdmisc.c
@@ -31,18 +31,13 @@

 #include "memdbg.h"

-#if defined(_WIN32) && (defined(__GNUC__) || defined(__clang__))
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wsign-conversion"
-#endif
-
 /* Set a file descriptor to non-blocking */
 bool
 set_nonblock_action(socket_descriptor_t fd)
 {
 #ifdef _WIN32
     u_long arg = 1;
-    if (ioctlsocket(fd, FIONBIO, &arg))
+    if (ioctlsocket(fd, (long)FIONBIO, &arg))
     {
         return false;
     }
@@ -55,10 +50,6 @@
     return true;
 }

-#if defined(_WIN32) && (defined(__GNUC__) || defined(__clang__))
-#pragma GCC diagnostic pop
-#endif
-
 /* Set a file descriptor to not be passed across execs */
 bool
 set_cloexec_action(socket_descriptor_t fd)

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2379?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5d209e05b6882ef679e5c5d95711c8f416515d6
Gerrit-Change-Number: 2379
Gerrit-PatchSet: 3
Gerrit-Owner: Frank Lichtenheld <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to