diff --git a/src/Main/sentryIntegration.cxx b/src/Main/sentryIntegration.cxx index 39fa71976..2a3cda173 100644 --- a/src/Main/sentryIntegration.cxx +++ b/src/Main/sentryIntegration.cxx @@ -29,6 +29,8 @@ #include
#include
+#include + using namespace std; // we don't want sentry enabled for the test suite @@ -78,7 +80,8 @@ void initSentry() sentry_options_set_release(options, "flightgear@" FLIGHTGEAR_VERSION); } - sentry_options_set_dist(options, std::to_string(JENKINS_BUILD_NUMBER)) + const auto buildString = std::to_string(JENKINS_BUILD_NUMBER); + sentry_options_set_dist(options, buildString.c_str()); SGPath dataPath = fgHomePath() / "sentry_db"; #if defined(SG_WINDOWS)