From 2dbe88936eecdee837303e3e00c98e6da36c50cd Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 29 Apr 2017 20:53:53 +0100 Subject: [PATCH] Don't warn about missing CrashRpt when developing --- src/Main/bootstrap.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 7acb63de1..93a15e46b 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -280,11 +280,14 @@ int main ( int argc, char **argv ) // Install crash reporting int nResult = crInstall(&info); if(nResult!=0) { - char buf[1024]; - crGetLastErrorMsg(buf, 1024); - flightgear::modalMessageBox("CrashRpt setup failed", - "Failed to setup crash-reporting engine, check the installation is not damaged.", - buf); + // don't warn about missing CrashRpt in developer builds + if (strcmp(FG_BUILD_TYPE, "Dev") != 0) { + char buf[1024]; + crGetLastErrorMsg(buf, 1024); + flightgear::modalMessageBox("CrashRpt setup failed", + "Failed to setup crash-reporting engine, check the installation is not damaged.", + buf); + } } else { global_crashRptEnabled = true;