]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msgfmt: Remove outdated warning.
authorBruno Haible <bruno@clisp.org>
Wed, 3 Oct 2018 22:58:24 +0000 (00:58 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Oct 2018 21:51:51 +0000 (23:51 +0200)
* gettext-tools/src/msgfmt.c (msgfmt_parse_debrief): Remove outdated warning.
(struct msgfmt_catalog_reader_ty): Remove field 'has_nonfuzzy_header_entry'.
(msgfmt_constructor, msgfmt_frob_new_message): Update.

gettext-tools/src/msgfmt.c

index adab4a41f2dbbf986c9cfaeff2707f788c753683..d8221952b5825a0ffae21e08ee662e61952b27b7 100644 (file)
@@ -1153,7 +1153,6 @@ struct msgfmt_catalog_reader_ty
   DEFAULT_CATALOG_READER_TY
 
   bool has_header_entry;
-  bool has_nonfuzzy_header_entry;
 };
 
 
@@ -1167,7 +1166,6 @@ msgfmt_constructor (abstract_catalog_reader_ty *that)
   default_constructor (that);
 
   this->has_header_entry = false;
-  this->has_nonfuzzy_header_entry = false;
 }
 
 
@@ -1192,18 +1190,6 @@ warning: PO file header missing or invalid\n")));
                            xasprintf (_("\
 warning: charset conversion will not work\n")));
         }
-      else if (!this->has_nonfuzzy_header_entry)
-        {
-          /* Has only a fuzzy header entry.  Since the versions 0.10.xx
-             ignore a fuzzy header entry and even give an error on it, we
-             give a warning, to increase operability with these older
-             msgfmt versions.  This warning can go away in January 2003.  */
-          multiline_warning (xasprintf ("%s: ", this->file_name),
-                             xasprintf (_("warning: PO file header fuzzy\n")));
-          multiline_warning (NULL,
-                             xasprintf (_("\
-warning: older versions of msgfmt will give an error on this\n")));
-        }
     }
 }
 
@@ -1323,8 +1309,6 @@ msgfmt_frob_new_message (default_catalog_reader_ty *that, message_ty *mp,
           if (is_header (mp))
             {
               this->has_header_entry = true;
-              if (!mp->is_fuzzy)
-                this->has_nonfuzzy_header_entry = true;
             }
           else
             /* We don't count the header entry in the statistic so place