diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-09 07:15:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-09 07:15:09 (GMT) |
commit | 84cfd81104a0debddc62d86ec377598d3f699766 (patch) | |
tree | 640c1704f91c3fb52f9078fab279a42dc33085ad /win/tclWinSock.c | |
parent | cbc27b8ec40a94a6a090e0d99c887878d8405cd0 (diff) | |
parent | 43d395f7b264caef65c2d725f80613f53ff3fd7d (diff) | |
download | tcl-84cfd81104a0debddc62d86ec377598d3f699766.zip tcl-84cfd81104a0debddc62d86ec377598d3f699766.tar.gz tcl-84cfd81104a0debddc62d86ec377598d3f699766.tar.bz2 |
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 4134420..0c1a270 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -1964,8 +1964,10 @@ TcpSetOptionProc( const char *optionName, /* Name of the option to set. */ const char *value) /* New value for option. */ { +#ifdef TCL_FEATURE_KEEPALIVE_NAGLE SocketInfo *infoPtr = instanceData; SOCKET sock; +#endif /*TCL_FEATURE_KEEPALIVE_NAGLE*/ /* * Check that WinSock is initialized; do not call it if not, to prevent @@ -1980,9 +1982,9 @@ TcpSetOptionProc( return TCL_ERROR; } +#ifdef TCL_FEATURE_KEEPALIVE_NAGLE sock = infoPtr->sockets->fd; -#ifdef TCL_FEATURE_KEEPALIVE_NAGLE if (!strcasecmp(optionName, "-keepalive")) { BOOL val = FALSE; int boolVar, rtn; |