Fixed warnings produced by clang-9.0.0
This commit is contained in:
@@ -160,7 +160,14 @@ TEST(Core_Ptr, assignment)
|
||||
|
||||
{
|
||||
Ptr<Reporter> p1(new Reporter(&deleted1));
|
||||
#if defined(__clang__) && (__clang_major__ >= 9) && !defined(__APPLE__)
|
||||
CV_DO_PRAGMA(GCC diagnostic push)
|
||||
CV_DO_PRAGMA(GCC diagnostic ignored "-Wself-assign-overloaded")
|
||||
#endif
|
||||
p1 = p1;
|
||||
#if defined(__clang__) && (__clang_major__ >= 9) && !defined(__APPLE__)
|
||||
CV_DO_PRAGMA(GCC diagnostic pop)
|
||||
#endif
|
||||
EXPECT_FALSE(deleted1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user