From e2410de134e240508a81df8ab87d9097157bf5c6 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 fbe8d3f19a..ad48711da3 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