]> Savannah Git Hosting - gnulib.git/commitdiff
posixtm tests: Fix warnings seen on MidnightBSD/x86.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Feb 2021 20:32:22 +0000 (21:32 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Feb 2021 20:32:22 +0000 (21:32 +0100)
* tests/test-posixtm.c (main): Convert two 'time_t' values to 'long' for
printing.

ChangeLog
tests/test-posixtm.c

index 1a9c80d7c1c16c2bfd6abe80e6c72ecd08497657..1a5c84b19247cf567e4bb2c4e0d146f739be8817 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-08  Bruno Haible  <bruno@clisp.org>
+
+       posixtm tests: Fix warnings seen on MidnightBSD/x86.
+       * tests/test-posixtm.c (main): Convert two 'time_t' values to 'long' for
+       printing.
+
 2021-02-07  Bruno Haible  <bruno@clisp.org>
 
        Add cross-compilation guesses for MidnightBSD.
index ea20564bd9f4fa1d4f0b642ff76822c95ae25e36..b07e0c55a92139e2c517160bd6a5cf2b74ccdabd 100644 (file)
@@ -178,7 +178,7 @@ main (void)
       if (t_out != t_exp)
         {
           printf ("%s mismatch (-: actual; +:expected)\n-%12ld\n+%12ld\n",
-                  T[i].in, t_out, t_exp);
+                  T[i].in, (long) t_out, (long) t_exp);
           fail = 1;
         }
     }