1
0
Fork 0

src/Main/sentryIntegration.cxx: fixed build error if HAVE_SENTRY undefined.

This commit is contained in:
Julian Smith 2021-07-28 23:16:30 +01:00
parent b2ecf39749
commit 8425a05bbe

View file

@ -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