From 676d1dfd5bd67560d156cbdedc5f53af371107cd Mon Sep 17 00:00:00 2001 From: Anton Potapov Date: Wed, 8 Apr 2020 17:13:33 +0300 Subject: [PATCH] GAPI: Fix [-Wreturn-type] warning on standalone mac build - added [[noreturn]] to standalone version of GAPI_Assert --- modules/gapi/include/opencv2/gapi/own/assert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";