From 2de5f579323e5a38a716eea3190431042619ce4e Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 23 Mar 2015 09:55:44 +0100 Subject: [PATCH] mtapi_network_c: disabled msvc compiler warning --- mtapi_network_c/src/embb_mtapi_network_socket.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mtapi_network_c/src/embb_mtapi_network_socket.c b/mtapi_network_c/src/embb_mtapi_network_socket.c index 75fed54..0338564 100644 --- a/mtapi_network_c/src/embb_mtapi_network_socket.c +++ b/mtapi_network_c/src/embb_mtapi_network_socket.c @@ -27,6 +27,7 @@ #define _WINSOCK_DEPRECATED_NO_WARNINGS #include +#include #include #ifdef _WIN32 #include @@ -147,7 +148,14 @@ int embb_mtapi_network_socket_select( FD_ZERO(&read_set); for (ii = 0; ii < count; ii++) { +#ifdef EMBB_PLATFORM_COMPILER_MSVC +#pragma warning(push) +#pragma warning(disable: 4548) +#endif FD_SET(sockets[ii].handle, &read_set); +#ifdef EMBB_PLATFORM_COMPILER_MSVC +#pragma warning(pop) +#endif if (sockets[ii].handle > max_fd.handle) max_fd.handle = sockets[ii].handle; } -- libgit2 0.26.0