mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
core: eliminate Winvalid-noreturn in base.hpp
This commit is contained in:
parent
aa11cc19e8
commit
a49cda6523
@ -297,7 +297,10 @@ It is possible to alternate error processing by using redirectError().
|
|||||||
*/
|
*/
|
||||||
CV_EXPORTS void error(int _code, const String& _err, const char* _func, const char* _file, int _line);
|
CV_EXPORTS void error(int _code, const String& _err, const char* _func, const char* _file, int _line);
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__clang__) && defined(_MSC_VER) // MSVC-Clang
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Winvalid-noreturn"
|
||||||
|
#elif defined(__GNUC__)
|
||||||
# if defined __clang__ || defined __APPLE__
|
# if defined __clang__ || defined __APPLE__
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
# pragma GCC diagnostic ignored "-Winvalid-noreturn"
|
# pragma GCC diagnostic ignored "-Winvalid-noreturn"
|
||||||
@ -316,7 +319,10 @@ CV_INLINE CV_NORETURN void errorNoReturn(int _code, const String& _err, const ch
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef __GNUC__
|
|
||||||
|
#if defined(__clang__) && defined(_MSC_VER) // MSVC-Clang
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#elif defined(__GNUC__)
|
||||||
# if defined __clang__ || defined __APPLE__
|
# if defined __clang__ || defined __APPLE__
|
||||||
# pragma GCC diagnostic pop
|
# pragma GCC diagnostic pop
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user