fix ununsed variable static check
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
This commit is contained in:
parent
44449851eb
commit
e7c021f5cb
@ -26,6 +26,7 @@ template<typename T>
|
|||||||
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
|
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
|
||||||
throw std::forward<T>(exception);
|
throw std::forward<T>(exception);
|
||||||
#else
|
#else
|
||||||
|
(void)exception;
|
||||||
std::abort();
|
std::abort();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2392,6 +2392,7 @@ template<typename T>
|
|||||||
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
|
#if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) || defined(EXCEPTIONS)
|
||||||
throw std::forward<T>(exception);
|
throw std::forward<T>(exception);
|
||||||
#else
|
#else
|
||||||
|
(void)exception;
|
||||||
std::abort();
|
std::abort();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user