summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-04-09 20:48:10 (GMT)
committernijtmans <nijtmans>2008-04-09 20:48:10 (GMT)
commit6ebc8b1f6853f9d58f3ea2cae77d51dc710d0824 (patch)
tree409f907f8b0820794a21354a36e9727f0b876f0a /win
parent9264ceb2aa5754564b5df1dfd7ae6e2ef68a4748 (diff)
downloadtk-6ebc8b1f6853f9d58f3ea2cae77d51dc710d0824.zip
tk-6ebc8b1f6853f9d58f3ea2cae77d51dc710d0824.tar.gz
tk-6ebc8b1f6853f9d58f3ea2cae77d51dc710d0824.tar.bz2
eliminate a few gcc 4.3 warnings
Diffstat (limited to 'win')
-rw-r--r--win/tkWinTest.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/win/tkWinTest.c b/win/tkWinTest.c
index 57792ec..f92a8cc 100644
--- a/win/tkWinTest.c
+++ b/win/tkWinTest.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinTest.c,v 1.14 2007/12/13 15:28:56 dgp Exp $
+ * RCS: @(#) $Id: tkWinTest.c,v 1.15 2008/04/09 20:48:10 nijtmans Exp $
*/
#include "tkWinInt.h"
@@ -182,7 +182,6 @@ TestclipboardObjCmd(
int objc, /* Number of arguments. */
Tcl_Obj *CONST objv[]) /* Argument values. */
{
- TkWindow *winPtr = (TkWindow *) clientData;
HGLOBAL handle;
char *data;
int code = TCL_OK;
@@ -348,7 +347,7 @@ TestwineventCmd(
wParam = MAKEWPARAM(id, 0);
lParam = (LPARAM)child;
}
- sprintf(buf, "%d", SendMessage(hwnd, message, wParam, lParam));
+ sprintf(buf, "%d", (int) SendMessage(hwnd, message, wParam, lParam));
Tcl_SetResult(interp, buf, TCL_VOLATILE);
break;
}
@@ -356,7 +355,7 @@ TestwineventCmd(
char buf[TCL_INTEGER_SPACE];
sprintf(buf, "%d",
- SendDlgItemMessage(hwnd, id, message, wParam, lParam));
+ (int)SendDlgItemMessage(hwnd, id, message, wParam, lParam));
Tcl_SetResult(interp, buf, TCL_VOLATILE);
break;
}
@@ -382,7 +381,6 @@ TestfindwindowObjCmd(
int objc, /* Number of arguments. */
Tcl_Obj *CONST objv[]) /* Argument values. */
{
- TkWindow *winPtr = (TkWindow *) clientData;
const char *title = NULL, *class = NULL;
HWND hwnd = NULL;
int r = TCL_OK;