]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix "warning: no previous extern declaration for non-static variable".
authorBruno Haible <bruno@clisp.org>
Sun, 6 Sep 2020 23:43:59 +0000 (01:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
* gettext-tools/src/write-desktop.c (msgfmt_methods): Make 'static'.
* gettext-tools/src/x-desktop.c (extract_methods): Likewise.

gettext-tools/src/write-desktop.c
gettext-tools/src/x-desktop.c

index 8efb8736381216c25f9b6077ded3566d96e767c5..9feadfd4e42981cc08df9a6fbc66c18a5f25626b 100644 (file)
@@ -125,7 +125,7 @@ msgfmt_desktop_handle_blank (struct desktop_reader_ty *reader, const char *s)
   fputc ('\n', msgfmt_reader->output_file);
 }
 
-desktop_reader_class_ty msgfmt_methods =
+static desktop_reader_class_ty msgfmt_methods =
   {
     sizeof (msgfmt_desktop_reader_ty),
     NULL,
index 8d6a4610a7564fcf504160b873c9840e055e7203..209da71cd21c215c0517ce9257f65edfe03c1da4 100644 (file)
@@ -163,7 +163,7 @@ extract_desktop_handle_blank (struct desktop_reader_ty *reader,
   savable_comment_reset ();
 }
 
-desktop_reader_class_ty extract_methods =
+static desktop_reader_class_ty extract_methods =
   {
     sizeof (extract_desktop_reader_ty),
     NULL,