Suppress some harmless clang warnings in the test suite

Use wxCLANG_WARNING_SUPPRESS() to avoid multiple warnings in CATCH
headers as well as in some of our own tests.
This commit is contained in:
Vadim Zeitlin
2019-01-04 23:36:44 +01:00
parent 659ab78c6d
commit dcee3ce899
5 changed files with 14 additions and 0 deletions

View File

@@ -364,12 +364,18 @@ void ArraysTestCase::wxStringArrayTest()
a6.Add("Foo");
a6.Insert(a6[0], 1, 100);
// The whole point of this code is to test self-assignment, so suppress
// clang warning about it.
wxCLANG_WARNING_SUPPRESS(self-assign-overloaded)
wxArrayString a7;
a7 = a7;
CPPUNIT_ASSERT_EQUAL( 0, a7.size() );
a7.Add("Bar");
a7 = a7;
CPPUNIT_ASSERT_EQUAL( 1, a7.size() );
wxCLANG_WARNING_RESTORE(self-assign-overloaded)
}
void ArraysTestCase::SortedArray()