Suppress warnings about missing field initializers for wxKeyNames.

This warning is harmless but annoying, especially because it's given a couple
of dozens times in this file, so just suppress it.
This commit is contained in:
Vadim Zeitlin 2015-06-12 17:38:42 +02:00
parent 147ae70623
commit 15d9067006

View File

@ -38,6 +38,8 @@ wxAcceleratorTable wxNullAcceleratorTable;
// wxAcceleratorEntry implementation
// ============================================================================
wxGCC_WARNING_SUPPRESS(missing-field-initializers)
static const struct wxKeyName
{
wxKeyCode code;
@ -112,6 +114,8 @@ static const struct wxKeyName
{ 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
//
// as accels can be either translated or not, check for both possibilities and