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

@@ -135,7 +135,9 @@ void VarArgTestCase::CharPrintf()
#ifdef _MSC_VER
#pragma warning(disable:4309) // truncation of constant value
#endif
wxCLANG_WARNING_SUPPRESS(constant-conversion)
c = 240;
wxCLANG_WARNING_RESTORE(constant-conversion)
#ifdef _MSC_VER
#pragma warning(default:4309)
#endif