Suppress harmless gcc missing initializers warnings in a test
Suppressing the warnings is ugly but less ugly than explicitly specifying all the omitted elements in the array.
This commit is contained in:
parent
cf25bbbf9a
commit
141f0cb0e4
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,8 @@ void BoxSizerTestCase::Size1()
|
|||
|
||||
void BoxSizerTestCase::Size3()
|
||||
{
|
||||
wxGCC_WARNING_SUPPRESS(missing-field-initializers)
|
||||
|
||||
// check that various combinations of minimal sizes and proportions work as
|
||||
// expected for different window sizes
|
||||
static const struct LayoutTestData
|
||||
|
|
@ -189,6 +191,8 @@ void BoxSizerTestCase::Size3()
|
|||
{ { 1, 2, 3, }, { 100, 100, 100, }, 0, { 0, 0, 0, }, true },
|
||||
};
|
||||
|
||||
wxGCC_WARNING_RESTORE(missing-field-initializers)
|
||||
|
||||
wxWindow *child[3];
|
||||
child[0] = new wxWindow(m_win, wxID_ANY);
|
||||
child[1] = new wxWindow(m_win, wxID_ANY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue