Paul Eggert
834ea48535
maint: pacify GCC 16 -Wuseless-cast
...
This mostly either removes casts if they are always no-ops, or
replaces casts (TYPE)(EXPR) with compound literals (TYPE){EXPR}.
Compound literals are a bit safer anyway, as casts are too
powerful in C.
* src/cksum_avx2.c (cksum_avx2):
* src/cksum_avx512.c (cksum_avx512):
* src/cksum_crc.c (cksum_slice8):
* src/cksum_pclmul.c (cksum_pclmul):
* src/cp-hash.c (remember_copied):
* src/numfmt.c (simple_strtod_float):
* src/system.h (x_timestyle_match):
Omit no-op casts.
* src/cp-hash.c (src_to_dest_hash):
* src/dd.c (dd_copy):
* src/df.c (devlist_hash):
* src/env.c (splitbuf_append_byte):
* src/getlimits.c (print_int, main):
* src/ls.c (dev_ino_hash):
* src/truncate.c (do_ftruncate):
Replace casts with compound literals.
* src/factor.c: Ignore -Wuseless-cast, as we include the imported
longlong.h file, which has many of them.
* src/numfmt.c (powerld): 2nd arg is now ptrdiff_t, not int, so
that integers are not silently mishandled in outlandish cases.
2026-05-10 23:42:26 -07:00
..
2026-01-18 15:55:38 +00:00
2025-11-19 19:23:36 -08:00
2026-04-04 14:55:56 -07:00
2026-04-25 19:04:12 +01:00
2026-04-10 22:44:22 -07:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:39:41 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-03-04 23:34:45 -08:00
2026-01-18 15:55:38 +00:00
2026-03-04 23:34:45 -08:00
2025-12-20 17:25:32 -08:00
2026-01-21 13:51:40 +00:00
2026-05-10 23:42:26 -07:00
2026-05-10 23:42:26 -07:00
2026-05-10 23:42:26 -07:00
2026-02-27 16:18:32 -08:00
2026-05-10 23:42:26 -07:00
2026-02-27 16:18:32 -08:00
2026-04-30 17:59:38 -07:00
2025-12-13 17:18:47 +00:00
2026-04-22 19:12:44 -07:00
2026-01-18 15:55:38 +00:00
2026-01-30 14:12:12 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-05-10 23:42:26 -07:00
2022-01-31 12:07:39 -08:00
2026-01-21 13:51:58 +00:00
2026-02-19 21:22:17 -08:00
2026-04-29 13:16:21 +01:00
2026-05-09 17:47:47 +01:00
2026-01-01 10:56:16 -08:00
2026-05-10 23:42:26 -07:00
2026-05-10 23:42:26 -07:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-02-28 19:13:42 -08:00
2026-04-25 19:04:12 +01:00
2026-05-10 23:42:26 -07:00
2026-01-28 11:25:36 -08:00
2026-01-21 13:51:40 +00:00
2026-03-10 16:30:52 +00:00
2026-02-17 18:45:33 -08:00
2026-01-01 10:56:16 -08:00
2026-05-10 23:42:26 -07:00
2026-02-04 16:42:26 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 21:40:44 -08:00
2026-03-10 16:30:52 +00:00
2026-01-18 15:55:38 +00:00
2021-10-31 22:36:46 -07:00
2026-05-10 23:42:26 -07:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-02-27 16:18:32 -08:00
2026-02-19 20:36:56 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-04-25 19:04:12 +01:00
2026-03-04 18:42:48 -08:00
2026-01-01 10:56:16 -08:00
2026-03-16 15:04:24 -07:00
2026-03-15 15:32:08 -07:00
2026-03-10 16:30:52 +00:00
2026-01-21 13:51:40 +00:00
2026-01-18 15:55:38 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:36:47 -08:00
2026-04-06 21:57:07 -07:00
2026-01-21 13:51:40 +00:00
2025-05-12 01:28:48 -07:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-05-10 23:42:26 -07:00
2025-12-20 17:25:32 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-04-11 09:58:13 -07:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:36:40 -08:00
2026-01-21 13:51:40 +00:00
2026-01-24 13:49:03 +00:00
2026-05-10 23:42:26 -07:00
2024-05-05 17:50:28 +01:00
2026-03-25 17:46:37 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 20:49:40 -08:00
2026-01-21 13:51:40 +00:00
2026-04-28 18:28:25 -07:00
2026-02-06 13:37:58 +00:00
2026-04-09 21:53:28 -07:00
2026-04-25 19:04:12 +01:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-02-16 10:45:45 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:35:35 -08:00
2026-01-21 13:51:40 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-02-19 20:53:20 -08:00
2026-01-21 13:51:39 +00:00
2026-01-01 10:56:16 -08:00
2025-11-03 13:00:32 +00:00
2024-05-05 17:50:14 +01:00
2026-05-10 13:45:44 -07:00
2026-05-07 23:32:52 -07:00
2026-01-21 13:51:40 +00:00
2026-04-29 13:16:21 +01:00
2025-07-09 17:12:40 -07:00
2026-04-16 22:05:13 +01:00
2026-04-09 21:36:43 +01:00
2026-02-27 16:50:36 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-21 13:51:40 +00:00
2026-05-10 23:42:26 -07:00
2026-01-18 15:55:38 +00:00
2026-03-21 15:50:33 -07:00
2026-02-19 21:24:54 -08:00
2026-03-15 15:32:08 -07:00
2026-01-18 15:55:38 +00:00
2023-07-18 23:10:40 +01:00
2025-11-22 12:43:28 +00:00
2026-01-01 10:56:16 -08:00
2026-04-30 14:51:23 +01:00
2026-03-13 20:37:10 -07:00
2026-04-08 22:34:13 -07:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-05-10 23:42:26 -07:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:35:19 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-01-21 13:51:40 +00:00
2025-12-20 17:25:32 -08:00
2026-04-29 13:16:43 +01:00
2026-04-28 11:25:41 -07:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-03-16 12:20:38 -07:00
2026-02-19 21:11:27 -08:00
2026-02-18 20:09:44 -08:00
2026-03-28 12:48:38 -07:00
2026-01-21 13:51:40 +00:00
2026-04-17 16:15:08 +01:00