]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid gcc warning.
authorBruno Haible <bruno@clisp.org>
Fri, 28 Jan 2005 12:59:03 +0000 (12:59 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:07 +0000 (12:12 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgfmt.c

index 358bd5319c61bfd74aa14e53c926fc35f1418e56..e28b2587e4f6d4587cf62d1646a4daa4a44d0b87 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-27  Bruno Haible  <bruno@clisp.org>
+
+       * msgfmt.c (formatstring_error_logger): Cast the fprrintf argument,
+       to make it work on big-endian 64-bit machines.
+
 2005-01-16  Bruno Haible  <bruno@clisp.org>
 
        Support for Scheme.
index 64f8e7b419f0438b75fa45f31429730f57f5d7fc..f7bd56e63123133c89d1ae3e2c7256f70b170530 100644 (file)
@@ -1151,8 +1151,9 @@ formatstring_error_logger (const char *format, ...)
   va_list args;
 
   va_start (args, format);
-  fprintf (stderr, "%s:%d: ",
-          curr_msgid_pos.file_name, curr_msgid_pos.line_number);
+  fprintf (stderr, "%s:%lu: ",
+          curr_msgid_pos.file_name,
+          (unsigned long) curr_msgid_pos.line_number);
   vfprintf (stderr, format, args);
   putc ('\n', stderr);
   fflush (stderr);