From: Paul Eggert Date: Mon, 11 May 2026 03:50:26 +0000 (-0700) Subject: posixtm-tests: pacify -Wuseless-cast X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e430e227c9b52267ccbdfd77da12f87227dd5b7e;p=thirdparty%2Fgnulib.git posixtm-tests: pacify -Wuseless-cast * tests/test-posixtm.c (main): Use compound literals, not casts. --- diff --git a/ChangeLog b/ChangeLog index 3e2fc600cc..76ae6d2a06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-05-10 Paul Eggert + 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; } }