ci static check fix

Signed-off-by: Harinath Nampally <harinath922@gmail.com>
This commit is contained in:
Harinath Nampally 2025-01-25 10:31:04 -05:00
parent e7c021f5cb
commit 32cbaee758
2 changed files with 4 additions and 2 deletions

View File

@ -26,7 +26,8 @@ template<typename T>
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
throw std::forward<T>(exception);
#else
(void)exception;
// Forward the exception (even if unused) and abort
std::forward<T>(exception);
std::abort();
#endif
}

View File

@ -2392,7 +2392,8 @@ template<typename T>
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
throw std::forward<T>(exception);
#else
(void)exception;
// Forward the exception (even if unused) and abort
std::forward<T>(exception);
std::abort();
#endif
}