diff options
author | Bruno Haible <bruno@clisp.org> | 2021-02-08 21:32:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-02-08 21:32:22 +0100 |
commit | 5040f712e9ab0e1a203095f2c3dcca5b7d473f1d (patch) | |
tree | baffb447f4cbc05a8d89b967ce594fb3f078f60d | |
parent | 71a8a22eac2abfa80ae4d35462fa0733c688383c (diff) | |
download | gnulib-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/test-posixtm.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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; } } |