fix ununsed variable static check

Signed-off-by: Harinath Nampally <harinath922@gmail.com>
This commit is contained in:
Harinath Nampally 2025-01-25 09:52:56 -05:00
parent 44449851eb
commit e7c021f5cb
2 changed files with 2 additions and 0 deletions

View File

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

View File

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