From: Bruno Haible Date: Fri, 2 Jun 2023 23:24:34 +0000 (+0200) Subject: Fix support for Qt4 plural forms format strings. X-Git-Tag: v0.22~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dea0f86421ce13ac6d0cdfe458a67a58531eee8;p=thirdparty%2Fgettext.git Fix support for Qt4 plural forms format strings. 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. --- 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 =