X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da1d313d806da94e50b592e88b3ac233a3043a6a..f4d233c74aa689b9d5160dcdddc5324812c972a3:/src/common/appbase.cpp?ds=sidebyside diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index d15e4a5d41..31fc28facb 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -128,11 +128,13 @@ wxAppConsole::~wxAppConsole() bool wxAppConsole::Initialize(int& argc, wxChar **argv) { +#if wxUSE_LOG // If some code logged something before wxApp instance was created, // wxLogStderr was set as the target. Undo it here by destroying the // current target. It will be re-created next time logging is needed, but // this time wxAppTraits will be used: delete wxLog::SetActiveTarget(NULL); +#endif // wxUSE_LOG // remember the command line arguments this->argc = argc; @@ -368,11 +370,13 @@ bool wxAppConsole::OnCmdLineParsed(wxCmdLineParser& parser) #if wxUSE_LOG if ( parser.Found(OPTION_VERBOSE) ) { - wxLog::SetVerbose(TRUE); + wxLog::SetVerbose(true); } +#else + wxUnusedVar(parser); #endif // wxUSE_LOG - return TRUE; + return true; } bool wxAppConsole::OnCmdLineHelp(wxCmdLineParser& parser)