From 8425a05bbe555d210e4fa23cd54b2ff64155981c Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Wed, 28 Jul 2021 23:16:30 +0100 Subject: [PATCH] src/Main/sentryIntegration.cxx: fixed build error if HAVE_SENTRY undefined. --- src/Main/sentryIntegration.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main/sentryIntegration.cxx b/src/Main/sentryIntegration.cxx index fd12ec826..5b383a2b3 100644 --- a/src/Main/sentryIntegration.cxx +++ b/src/Main/sentryIntegration.cxx @@ -567,12 +567,16 @@ void addSentryTag(const std::string& tag, const std::string& value) SentryAllocErrorSupression::SentryAllocErrorSupression() { +#if defined(HAVE_SENTRY) && !defined(BUILDING_TESTSUITE) perThread_reportAllocErrors = false; +#endif } SentryAllocErrorSupression::~SentryAllocErrorSupression() { +#if defined(HAVE_SENTRY) && !defined(BUILDING_TESTSUITE) perThread_reportAllocErrors = true; +#endif } } // of namespace flightgear