summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-02-08 21:32:22 +0100
committerBruno Haible <bruno@clisp.org>2021-02-08 21:32:22 +0100
commit5040f712e9ab0e1a203095f2c3dcca5b7d473f1d (patch)
treebaffb447f4cbc05a8d89b967ce594fb3f078f60d
parent71a8a22eac2abfa80ae4d35462fa0733c688383c (diff)
downloadgnulib-5040f712e9ab0e1a203095f2c3dcca5b7d473f1d.tar.gz
gnulib-5040f712e9ab0e1a203095f2c3dcca5b7d473f1d.tar.bz2
posixtm tests: Fix warnings seen on MidnightBSD/x86.
* tests/test-posixtm.c (main): Convert two 'time_t' values to 'long' for printing.
-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;
}
}

Return to:

Send suggestions and report system problems to the System administrator.