diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-03-14 06:21:53 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-03-14 06:21:53 (GMT) |
commit | db66eba288137fdbdeeac57c8775e53fc2d7b822 (patch) | |
tree | fd2d51d0b2066fb1f0a77e411485680f5728b27f /Modules/tkappinit.c | |
parent | 0ca9acd1dd906957389fb759b19ae89b3cfd2c18 (diff) | |
download | cpython-db66eba288137fdbdeeac57c8775e53fc2d7b822.zip cpython-db66eba288137fdbdeeac57c8775e53fc2d7b822.tar.gz cpython-db66eba288137fdbdeeac57c8775e53fc2d7b822.tar.bz2 |
Avoid main_window unused compiler warning.
Diffstat (limited to 'Modules/tkappinit.c')
-rw-r--r-- | Modules/tkappinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c index c1f97b0..2ed8594 100644 --- a/Modules/tkappinit.c +++ b/Modules/tkappinit.c @@ -26,7 +26,9 @@ static int tk_load_failed; int Tcl_AppInit(Tcl_Interp *interp) { +#ifdef WITH_MOREBUTTONS Tk_Window main_window; +#endif const char *_tkinter_skip_tk_init; #ifdef TKINTER_PROTECT_LOADTK const char *_tkinter_tk_failed; @@ -111,7 +113,11 @@ Tcl_AppInit(Tcl_Interp *interp) return TCL_ERROR; } +#ifdef WITH_MOREBUTTONS main_window = Tk_MainWindow(interp); +#else + Tk_MainWindow(interp); +#endif #ifdef TK_AQUA TkMacOSXInitAppleEvents(interp); |