From 9a7e5ebb3a98a540bdd477719f1ff6eb67dc3c45 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 6 Mar 2014 12:14:00 -0500 Subject: [PATCH] MGR: We need to cast mb_str() calls when using fprintf or some other C Runtime function. --- clientgui/BOINCGUIApp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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