From 9dea0f86421ce13ac6d0cdfe458a67a58531eee8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Jun 2023 01:24:34 +0200 Subject: [PATCH] Fix support for Qt4 plural forms format strings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Pinpointed by gcc 13 warning: warning: missing initializer for field ‘is_format3’ of ‘flag_context_ty’ [-Wmissing-field-initializers] * gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context, passthrough_context_circular_list): Initialize also the fields is_format3, pass_format3. --- gettext-tools/src/xg-arglist-context.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/gettext-tools/src/xg-arglist-context.c b/gettext-tools/src/xg-arglist-context.c index 68feba582..14f37cb5f 100644 --- a/gettext-tools/src/xg-arglist-context.c +++ b/gettext-tools/src/xg-arglist-context.c @@ -1,6 +1,6 @@ /* Keeping track of the flags that apply to a string extracted in a certain context. - Copyright (C) 2001-2018 Free Software Foundation, Inc. + Copyright (C) 2001-2018, 2023 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,10 +29,20 @@ /* Null context. */ -flag_context_ty null_context = { undecided, false, undecided, false }; +flag_context_ty null_context = + { + undecided, false, + undecided, false, + undecided, false + }; /* Transparent context. */ -flag_context_ty passthrough_context = { undecided, true, undecided, true }; +flag_context_ty passthrough_context = + { + undecided, true, + undecided, true, + undecided, true + }; flag_context_ty @@ -67,7 +77,7 @@ flag_context_list_iterator_ty null_context_list_iterator = { 1, NULL }; static flag_context_list_ty passthrough_context_circular_list = { 1, - { undecided, true, undecided, true }, + { undecided, true, undecided, true, undecided, true }, &passthrough_context_circular_list }; flag_context_list_iterator_ty passthrough_context_list_iterator = -- 2.47.2