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)
commit1cc312402e4bf74f11762bf1ac91f17a6bbf425e (patch)
tree409f907f8b0820794a21354a36e9727f0b876f0a /win
parent679c6b232167c53eed33c0823d4e6341de1f1db8 (diff)
downloadtk-1cc312402e4bf74f11762bf1ac91f17a6bbf425e.zip
tk-1cc312402e4bf74f11762bf1ac91f17a6bbf425e.tar.gz
tk-1cc312402e4bf74f11762bf1ac91f17a6bbf425e.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;