summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-posixtm.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a9c80d7c1..1a5c84b192 100644
--- 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.
diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c
index ea20564bd9..b07e0c55a9 100644
--- a/tests/test-posixtm.c
+++ b/tests/test-posixtm.c
@@ -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;
}
}