diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 613b86ddf1..d6b2986af4 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -571,6 +571,7 @@ void CBOINCGUIApp::OnEndSession(wxCloseEvent& ) { void CBOINCGUIApp::OnFatalException() { +#ifdef wxUSE_DEBUGREPORT wxDebugReportCompress* report = new wxDebugReportCompress; if (report->IsOk()) { @@ -581,13 +582,14 @@ void CBOINCGUIApp::OnFatalException() { fprintf( stderr, "ASSERT: Report generated in \"%s\".\n", - report->GetCompressedFileName().mb_str() + (const char*)report->GetCompressedFileName().mb_str() ); report->Reset(); } } delete report; +#endif } #endif