Suppress all -Wmissing-field-initializers in the test suite

There were many dozens of such warnings given for the various arrays
used in the tests and it just doesn't seem feasible nor desirable to fix
them all, so just suppress the warnings for all these arrays to get rid
of them with recent (7+?) versions of gcc.
This commit is contained in:
Vadim Zeitlin
2019-02-02 17:25:37 +01:00
parent 9a7a89b7b2
commit 2a907769fb
3 changed files with 40 additions and 0 deletions

View File

@@ -612,6 +612,8 @@ typedef wxLongLong_t TestValue_t;
typedef long TestValue_t;
#endif
wxGCC_WARNING_SUPPRESS(missing-field-initializers)
static const struct ToLongData
{
const wxChar *str;
@@ -667,6 +669,8 @@ static const struct ToLongData
{ wxT("0x11"), 17, Number_Ok, 16 },
};
wxGCC_WARNING_RESTORE(missing-field-initializers)
void StringTestCase::ToLong()
{
long l;