From 5040f712e9ab0e1a203095f2c3dcca5b7d473f1d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Feb 2021 21:32:22 +0100 Subject: [PATCH] posixtm tests: Fix warnings seen on MidnightBSD/x86. * tests/test-posixtm.c (main): Convert two 'time_t' values to 'long' for printing. --- ChangeLog | 6 ++++++ tests/test-posixtm.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1a9c80d7c1..1a5c84b192 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-02-08 Bruno Haible + + 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 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; } } -- 2.39.5