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:
@@ -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;
|
||||||
@@ -112,6 +114,8 @@ 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
|
||||||
//
|
//
|
||||||
// as accels can be either translated or not, check for both possibilities and
|
// as accels can be either translated or not, check for both possibilities and
|
||||||
|
Reference in New Issue
Block a user