From edba3942ccfce5b5f99aeebb433b7952564d1fcf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 Oct 2025 13:55:18 -0500 Subject: [PATCH] /utf8proc/utf8proc_data.c: Address missing field initializer warnings Address missing field initializer warnings. Since this is third party code and the structure initialization in question is large, the warning was disabled. Updates #5325. --- contrib/cpukit/utf8proc/utf8proc_data.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/cpukit/utf8proc/utf8proc_data.c b/contrib/cpukit/utf8proc/utf8proc_data.c index 1426b76e03..e8d86a525a 100644 --- a/contrib/cpukit/utf8proc/utf8proc_data.c +++ b/contrib/cpukit/utf8proc/utf8proc_data.c @@ -4945,6 +4945,14 @@ const uint16_t utf8proc_stage2table[] = { 3440, 3440, 3440, 3440, 3440, 3440, 3440, 0, 0, }; +#ifdef __rtems__ +/* + * The first line deliberately is incomplete. Turn off the missing + * field initializer warning. + */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif /* rtems */ const utf8proc_property_t utf8proc_properties[] = { {0, 0, 0, 0, NULL, false, -1, -1, -1, -1, -1, false}, {UTF8PROC_CATEGORY_CC, 0, UTF8PROC_BIDI_CLASS_BN, 0, NULL, false, -1, -1, -1, -1, -1, false, true, true, false, NULL}, @@ -10565,6 +10573,10 @@ const utf8proc_property_t utf8proc_properties[] = { {UTF8PROC_CATEGORY_LO, 0, UTF8PROC_BIDI_CLASS_L, 0, utf8proc_sequences + 5902, false, -1, -1, -1, -1, -1, false, false, false, false, NULL}, {UTF8PROC_CATEGORY_LO, 0, UTF8PROC_BIDI_CLASS_L, 0, utf8proc_sequences + 11502, false, -1, -1, -1, -1, -1, false, false, false, false, NULL}, }; +#ifdef __rtems__ +/* Reenable missing field initializers warnings. */ +#pragma GCC diagnostic pop +#endif /* rtems */ const int32_t utf8proc_combinations[] = { 192, 193, 194, 195, 196, 197, -1,