Suppress wxKeyNames missing field initializers warnings again
This reapplies15d9067006
which was reverted indaae25753e
for some reason, but is still needed as we get a bunch of -Wmissing-field-initializers from gcc 8 without it. See https://github.com/wxWidgets/wxWidgets/pull/1463
This commit is contained in:
@@ -38,6 +38,8 @@ wxAcceleratorTable wxNullAcceleratorTable;
|
|||||||
// wxAcceleratorEntry implementation
|
// wxAcceleratorEntry implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
|
wxGCC_WARNING_SUPPRESS(missing-field-initializers)
|
||||||
|
|
||||||
static const struct wxKeyName
|
static const struct wxKeyName
|
||||||
{
|
{
|
||||||
wxKeyCode code;
|
wxKeyCode code;
|
||||||
@@ -113,6 +115,7 @@ static const struct wxKeyName
|
|||||||
{ WXK_COMMAND, /*TRANSLATORS: Name of keyboard key*/ wxTRANSLATE("Command") },
|
{ WXK_COMMAND, /*TRANSLATORS: Name of keyboard key*/ wxTRANSLATE("Command") },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wxGCC_WARNING_RESTORE(missing-field-initializers)
|
||||||
|
|
||||||
// return true if the 2 strings refer to the same accel
|
// return true if the 2 strings refer to the same accel
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user