GAPI: Fix [-Wreturn-type] warning on standalone mac build

- added [[noreturn]] to standalone version of  GAPI_Assert
This commit is contained in:
Anton Potapov 2020-04-08 17:13:33 +03:00
parent 31ec9b2aa7
commit 676d1dfd5b

View File

@ -20,7 +20,7 @@
namespace detail
{
inline void assert_abort(const char* str, int line, const char* file, const char* func)
[[noreturn]] inline void assert_abort(const char* str, int line, const char* file, const char* func)
{
std::stringstream ss;
ss << file << ":" << line << ": Assertion " << str << " in function " << func << " failed\n";