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

@@ -133,7 +133,9 @@ void WeakRefTestCase::DeclareTest()
wxWeakRef<IncompleteClass> p;
// Copying should be also OK
wxCLANG_WARNING_SUPPRESS(self-assign-overloaded)
p = p;
wxCLANG_WARNING_RESTORE(self-assign-overloaded)
// Assigning a raw pointer should cause compile error
#ifdef TEST_INVALID_INCOMPLETE_WEAKREF