git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6605
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
m_connected = FALSE;
m_establishing = FALSE;
{
m_connected = FALSE;
m_establishing = FALSE;
- return (flags & GSOCK_LOST_FLAG);
+ return (flags & GSOCK_LOST_FLAG) != 0;
#endif /* __GSOCKET_STANDALONE__ */
#endif /* __GSOCKET_STANDALONE__ */
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#define SOCKLEN_T int
#endif
#define SOCKLEN_T int
#endif
+#ifdef _MSC_VER
+ /* using FD_SET results in this warning */
+ #pragma warning(disable:4127) /* conditional expression is constant */
+#endif /* Visual C++ */
+
#define CLASSNAME "_GSocket_Internal_Window_Class"
#define WINDOWNAME "_GSocket_Internal_Window_Name"
#define CLASSNAME "_GSocket_Internal_Window_Class"
#define WINDOWNAME "_GSocket_Internal_Window_Name"
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
- &sck->m_local->m_len) != 0) ||
+ (SOCKLEN_T *)&sck->m_local->m_len) != 0) ||
(listen(sck->m_fd, 5) != 0))
{
closesocket(sck->m_fd);
(listen(sck->m_fd, 5) != 0))
{
closesocket(sck->m_fd);
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
- &sck->m_local->m_len) != 0))
+ (SOCKLEN_T *)&sck->m_local->m_len) != 0))
{
closesocket(sck->m_fd);
sck->m_fd = INVALID_SOCKET;
{
closesocket(sck->m_fd);
sck->m_fd = INVALID_SOCKET;
* -------------------------------------------------------------------------
*/
* -------------------------------------------------------------------------
*/
+#ifdef _MSC_VER
+ #pragma warning(disable:4100) /* unreferenced formal parameter */
+#endif /* Visual C++ */
+
GSocketError _GAddress_Init_UNIX(GAddress *address)
{
assert (address != NULL);
GSocketError _GAddress_Init_UNIX(GAddress *address)
{
assert (address != NULL);