* tests/test-posixtm.c (main): Use compound literals, not casts.
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.
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;
}
}