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 | 7884058a52af8573e05691c2e1e40fdfa78ab5db (patch) | |
tree | 640c1704f91c3fb52f9078fab279a42dc33085ad /win/tclWinSock.c | |
parent | bc61e591021b6e5b5e4a49fe1f0111b4a475cc27 (diff) | |
parent | f0ac2a42dacd012d571e820af585805230045d01 (diff) | |
download | tcl-7884058a52af8573e05691c2e1e40fdfa78ab5db.zip tcl-7884058a52af8573e05691c2e1e40fdfa78ab5db.tar.gz tcl-7884058a52af8573e05691c2e1e40fdfa78ab5db.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; |