From ac76507030199c07f8c4759b3239aab93c7eec70 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Jun 2023 01:29:19 +0200 Subject: [PATCH] Silence "missing initializer for field" warnings. * gettext-tools/src/xgettext.c (main, language_to_extractor): Initialize all fields of extractor_ty. --- gettext-tools/src/xgettext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index 5aa5d7a20..f271b5c05 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -1,5 +1,5 @@ /* Extracts strings from C source file to Uniforum style .po file. - Copyright (C) 1995-1998, 2000-2016, 2018-2022 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2016, 2018-2023 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -340,7 +340,7 @@ main (int argc, char *argv[]) string_list_ty *file_list; char *output_file = NULL; const char *language = NULL; - extractor_ty extractor = { NULL, NULL, NULL, NULL }; + extractor_ty extractor = { NULL, NULL, NULL, NULL, NULL, NULL }; int cnt; size_t i; @@ -838,7 +838,7 @@ xgettext cannot work without keywords to look for")); /* Temporarily reset the directory list to empty, because file_name is an output file and therefore should not be searched for. */ void *saved_directory_list = dir_list_save_reset (); - extractor_ty po_extractor = { extract_po, NULL, NULL, NULL }; + extractor_ty po_extractor = { extract_po, NULL, NULL, NULL, NULL, NULL }; extract_from_file (file_name, po_extractor, mdlp); if (!is_ascii_msgdomain_list (mdlp)) @@ -2229,7 +2229,7 @@ language_to_extractor (const char *name) error (EXIT_FAILURE, 0, _("language '%s' unknown"), name); /* NOTREACHED */ { - extractor_ty result = { NULL, NULL, NULL, NULL }; + extractor_ty result = { NULL, NULL, NULL, NULL, NULL, NULL }; return result; } } -- 2.47.2