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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user