diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-11 09:19:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-11 09:19:51 (GMT) |
commit | cfc7fad4cea8331c03f4687b5619470a5c3aae81 (patch) | |
tree | 2b063843811fceaf49b9299bb925a63b56f396b3 /generic/ttk/ttkManager.c | |
parent | 361c3bf9f98f466a889c0fe9c7f7ce6d723746d0 (diff) | |
parent | 1c329fda154991dc5abe51c9359959e52c4e5b12 (diff) | |
download | tk-cfc7fad4cea8331c03f4687b5619470a5c3aae81.zip tk-cfc7fad4cea8331c03f4687b5619470a5c3aae81.tar.gz tk-cfc7fad4cea8331c03f4687b5619470a5c3aae81.tar.bz2 |
Eliminate some unneeded write-only variables (discovered by gcc-4.6)
Diffstat (limited to 'generic/ttk/ttkManager.c')
-rw-r--r-- | generic/ttk/ttkManager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/ttk/ttkManager.c b/generic/ttk/ttkManager.c index 47c9df0..1238638 100644 --- a/generic/ttk/ttkManager.c +++ b/generic/ttk/ttkManager.c @@ -528,7 +528,7 @@ void Ttk_ReorderSlave(Ttk_Manager *mgr, int fromIndex, int toIndex) */ int Ttk_Maintainable(Tcl_Interp *interp, Tk_Window slave, Tk_Window master) { - Tk_Window ancestor = master, parent = Tk_Parent(slave), sibling = NULL; + Tk_Window ancestor = master, parent = Tk_Parent(slave); if (Tk_IsTopLevel(slave) || slave == master) { goto badWindow; @@ -538,7 +538,6 @@ int Ttk_Maintainable(Tcl_Interp *interp, Tk_Window slave, Tk_Window master) if (Tk_IsTopLevel(ancestor)) { goto badWindow; } - sibling = ancestor; ancestor = Tk_Parent(ancestor); } |