From ff9d814fbd0be6c64b0fe1577f528dcdde2488ff Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 24 Jan 2019 21:25:39 -0800 Subject: [PATCH] Fix unused vars in wxpython3 --- pcbnew/swig/python_scripting.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/swig/python_scripting.cpp b/pcbnew/swig/python_scripting.cpp index 66aca2e78b..e273f504b0 100644 --- a/pcbnew/swig/python_scripting.cpp +++ b/pcbnew/swig/python_scripting.cpp @@ -366,7 +366,9 @@ wxWindow* CreatePythonShellWindow( wxWindow* parent, const wxString& aFramenameI PyDict_SetItemString( globals, "__builtins__", builtins ); Py_DECREF( builtins ); +#ifdef KICAD_SCRIPTING_WXPYTHON_PHOENIX auto app_ptr = wxTheApp; +#endif // Execute the code to make the makeWindow function we defined above PyObject* result = PyRun_String( pcbnew_pyshell_one_step.str().c_str(), Py_file_input, globals, globals );