Minor fixes to new wxLog functions test case

Only use the diagnostic pragma for the compilers that understand it.

Also don't use hard TABs.
This commit is contained in:
Vadim Zeitlin
2020-02-04 22:32:41 +01:00
parent 32ead5a0ff
commit 57111b83c9

View File

@@ -397,9 +397,12 @@ void LogTestCase::NoWarnings()
// The following two functions (v, macroCompilabilityTest) are not run by
// any test, and their purpose is merely to guarantee that the wx(V)LogXXX
// macros compile without 'dangling else' warnings.
#if defined(__clang__) || wxCHECK_GCC_VERSION(4, 6)
#pragma GCC diagnostic error "-Wdangling-else"
#endif
static void v(int x, ...) {
static void v(int x, ...)
{
va_list list;
va_start(list, x);