SL-10297 fix MSVC unreachable code warning

meow-7.2.2
Oz Linden 2020-08-26 15:33:20 -04:00
parent 4e4564dcf3
commit 1aa140d3af
1 changed files with 6 additions and 0 deletions

View File

@ -77,8 +77,14 @@
LLError::ErrFatalHookResult wouldHaveCrashed(const std::string& message)
{
#if LL_MSVC
#pragma warning (push)
#pragma warning (disable : 4702) // warning C4702: unreachable code
tut::fail("fatal error message: " + message);
return LLError::ERR_DO_NOT_CRASH;
#if LL_MSVC
#pragma warning (pop)
#endif
}
namespace tut