Fixed warnings produced by clang-9.0.0

This commit is contained in:
Maksim Shabunin
2019-01-28 14:48:00 +03:00
parent e2dbf054ac
commit ea3dc78986
6 changed files with 14 additions and 15 deletions
+7
View File
@@ -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);
}