From 15d906700656ca321eab0e1f7c5de7eb36afd38a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Jun 2015 17:38:42 +0200 Subject: [PATCH] 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. --- src/common/accelcmn.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/accelcmn.cpp b/src/common/accelcmn.cpp index 0b2a401ea5..f5bea8079a 100644 --- a/src/common/accelcmn.cpp +++ b/src/common/accelcmn.cpp @@ -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