[Python-checkins] cpython: Avoid main_window unused compiler warning.
gregory.p.smith
python-checkins at python.org
Wed Mar 14 20:55:02 CET 2012
http://hg.python.org/cpython/rev/a7a9e0f46b8a
changeset: 75635:a7a9e0f46b8a
user: Gregory P. Smith <greg at krypto.org>
date: Tue Mar 13 23:21:53 2012 -0700
summary:
Avoid main_window unused compiler warning.
files:
Modules/tkappinit.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c
--- a/Modules/tkappinit.c
+++ b/Modules/tkappinit.c
@@ -26,7 +26,9 @@
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 @@
return TCL_ERROR;
}
+#ifdef WITH_MOREBUTTONS
main_window = Tk_MainWindow(interp);
+#else
+ Tk_MainWindow(interp);
+#endif
#ifdef TK_AQUA
TkMacOSXInitAppleEvents(interp);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list