From 24807f0aa9417c87c4ce1ad554c48350917fca39 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Jun 2015 17:38:42 +0200 Subject: [PATCH] Suppress wxKeyNames missing field initializers warnings again This reapplies 15d906700656ca321eab0e1f7c5de7eb36afd38a which was reverted in daae25753e00a3e270928b83bd5adc2618ef6f46 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 --- src/common/accelcmn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/accelcmn.cpp b/src/common/accelcmn.cpp index 820985df26..1174305b94 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; @@ -113,6 +115,7 @@ 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 //