]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix support for Qt4 plural forms format strings.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:24:34 +0000 (01:24 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:24:34 +0000 (01:24 +0200)
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

index 68feba5824d1822e1498fc79dbb239a0f999ffe6..14f37cb5f54b8c16db2efa6f84ae89b512b0b372 100644 (file)
@@ -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
 
 
 /* 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 =