diff --git a/modules/gapi/include/opencv2/gapi/own/assert.hpp b/modules/gapi/include/opencv2/gapi/own/assert.hpp index 92b246ff6d..d0e0f1c3ff 100644 --- a/modules/gapi/include/opencv2/gapi/own/assert.hpp +++ b/modules/gapi/include/opencv2/gapi/own/assert.hpp @@ -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";