1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

posixtm-tests: pacify -Wuseless-cast

* tests/test-posixtm.c (main): Use compound literals, not casts.
This commit is contained in:
Paul Eggert
2026-05-10 20:50:26 -07:00
parent 3367153db8
commit e430e227c9
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2026-05-10 Paul Eggert <eggert@cs.ucla.edu>
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.

View File

@@ -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;
}
}