summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-04-18 12:30:49 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-04-18 12:30:49 (GMT)
commit8a1bd75ea0b55649f8dbabaa86aae60fc85b116b (patch)
tree601ba63a992cd579879e518f0d96707d0a4c9fe6 /generic/tkWindow.c
parent9517b261f6fbdfd580edb5b4846084051c43261c (diff)
downloadtk-8a1bd75ea0b55649f8dbabaa86aae60fc85b116b.zip
tk-8a1bd75ea0b55649f8dbabaa86aae60fc85b116b.tar.gz
tk-8a1bd75ea0b55649f8dbabaa86aae60fc85b116b.tar.bz2
compiler warnings
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index df1bf86..5b11f64 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -151,7 +151,7 @@ static const TkCmd commands[] = {
{"scrollbar", Tk_ScrollbarCmd, NULL, PASSMAINWINDOW|ISSAFE},
{"spinbox", NULL, Tk_SpinboxObjCmd, ISSAFE},
{"text", NULL, Tk_TextObjCmd, PASSMAINWINDOW|ISSAFE},
- {"toplevel", NULL, Tk_ToplevelObjCmd, 0, 0},
+ {"toplevel", NULL, Tk_ToplevelObjCmd, 0},
/*
* Classic widget class commands.
@@ -860,7 +860,7 @@ TkCreateMainWindow(
Tcl_HashEntry *hPtr;
register TkMainInfo *mainPtr;
register TkWindow *winPtr;
- register TkCmd *cmdPtr;
+ register const TkCmd *cmdPtr;
ClientData clientData;
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
@@ -1502,7 +1502,7 @@ Tk_DestroyWindow(
}
winPtr->mainPtr->refCount--;
if (winPtr->mainPtr->refCount == 0) {
- register TkCmd *cmdPtr;
+ register const TkCmd *cmdPtr;
/*
* We just deleted the last window in the application. Delete the