* tests/test-posixtm.c (main): Use compound literals, not casts. --- ChangeLog | 3 +++ tests/test-posixtm.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index 3e2fc600cc..76ae6d2a06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-05-10 Paul Eggert <[email protected]> + posixtm-tests: pacify -Wuseless-cast + * tests/test-posixtm.c (main): Use compound literals, not casts. + inttostr-tests: pacify -Wuseless-cast * tests/test-inttostr.c (CK): Use compound literals, not casts. diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index 950bdac74e..002aa705cb 100644 --- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -186,7 +186,7 @@ main (void) if (t_out != t_exp) { printf ("%s mismatch (-: actual; +:expected)\n-%12ld\n+%12ld\n", - T[i].in, (long) t_out, (long) t_exp); + T[i].in, (long) {t_out}, (long) {t_exp}); test_exit_status = EXIT_FAILURE; } } -- 2.54.0
