summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-13 22:29:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-13 22:29:46 (GMT)
commitdff96aa27cdba340f38ae9fe05fd4ebb46f767c6 (patch)
tree396cc9a1f30e93ac14c8698b1d0008c4af8ffb93 /generic
parent7d86aadfc1e60d69b218408955975c988e33c977 (diff)
parent8ef38a7e1335498220c1dad6109c3f035f878ffa (diff)
downloadtk-dff96aa27cdba340f38ae9fe05fd4ebb46f767c6.zip
tk-dff96aa27cdba340f38ae9fe05fd4ebb46f767c6.tar.gz
tk-dff96aa27cdba340f38ae9fe05fd4ebb46f767c6.tar.bz2
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'generic')
-rw-r--r--generic/tkBitmap.c4
-rw-r--r--generic/tkConsole.c8
2 files changed, 2 insertions, 10 deletions
diff --git a/generic/tkBitmap.c b/generic/tkBitmap.c
index b641cb5..675a42a 100644
--- a/generic/tkBitmap.c
+++ b/generic/tkBitmap.c
@@ -23,7 +23,7 @@
* that warning message.
*/
-#if (defined(__WIN32__) || defined(_WIN32)) && !defined(__GNUC__)
+#if defined(_MSC_VER)
#pragma warning (disable : 4305)
#endif
@@ -38,7 +38,7 @@
#include "question.xbm"
#include "warning.xbm"
-#if (defined(__WIN32__) || defined(_WIN32)) && !defined(__GNUC__)
+#if defined(_MSC_VER)
#pragma warning (default : 4305)
#endif
diff --git a/generic/tkConsole.c b/generic/tkConsole.c
index e39caaa..a59092e 100644
--- a/generic/tkConsole.c
+++ b/generic/tkConsole.c
@@ -112,25 +112,17 @@ ShouldUseConsoleChannel(
DCB dcb;
DWORD consoleParams;
DWORD fileType;
- int mode;
- const char *bufMode;
HANDLE handle;
switch (type) {
case TCL_STDIN:
handleId = STD_INPUT_HANDLE;
- mode = TCL_READABLE;
- bufMode = "line";
break;
case TCL_STDOUT:
handleId = STD_OUTPUT_HANDLE;
- mode = TCL_WRITABLE;
- bufMode = "line";
break;
case TCL_STDERR:
handleId = STD_ERROR_HANDLE;
- mode = TCL_WRITABLE;
- bufMode = "none";
break;
default:
return 0;