From 15b8a8d935ca0e106fb3988d1d431f3c4dff9f04 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 13 Aug 2019 15:02:05 +0300 Subject: [PATCH] build: eliminate warnings with Xcode 10.3 --- modules/core/test/test_ptr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/test/test_ptr.cpp b/modules/core/test/test_ptr.cpp index 2a099846a8..ffeb443a1d 100644 --- a/modules/core/test/test_ptr.cpp +++ b/modules/core/test/test_ptr.cpp @@ -43,6 +43,10 @@ namespace opencv_test { namespace { +#if defined __clang__ && defined __APPLE__ +#pragma clang diagnostic ignored "-Wself-assign-overloaded" // explicitly assigning value of variable of type '...' to itself (p1 = p1) +#endif + #ifdef GTEST_CAN_COMPARE_NULL # define EXPECT_NULL(ptr) EXPECT_EQ(NULL, ptr) #else