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; }