Taylor Blau
dab24e4bcb
builtin/repack.c: avoid unnecessary numeric casts in existing_packs
...
There are a couple of spots that cause warnings within the
existing_packs API without DISABLE_SIGN_COMPARE_WARNINGS under
DEVELOPER=1 mode.
In both cases, we have int values that are being compared against size_t
ones. Neither of these two cases are incorrect, and the cast is
completely OK in practice. But both are unnecessary, since:
- in existing_packs_mark_for_deletion_1(), 'hexsz' should be defined as
a size_t anyway, since algop->hexsz is.
- in existing_packs_collect(), 'i' should be defined as a size_t since
it is counting up to the value of a string_list's 'nr' field.
(This patch is a little bit of noise, but I would rather see us squelch
these warnings ahead of moving the existing_packs API into a separate
compilation unit to avoid having to define DISABLE_SIGN_COMPARE_WARNINGS
in repack.c.)
Signed-off-by: Taylor Blau <me@ttaylorr.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-10-16 10:08:54 -07:00
..
2025-08-25 09:48:13 -07:00
2025-07-23 08:15:20 -07:00
2024-10-25 14:02:36 -04:00
2025-07-01 14:58:24 -07:00
2024-10-11 09:37:18 -07:00
2025-09-24 11:53:50 -07:00
2024-12-06 20:20:02 +09:00
2025-08-21 13:46:59 -07:00
2025-07-23 08:15:21 -07:00
2025-04-15 08:24:35 -07:00
2024-12-13 07:33:36 -08:00
2025-09-24 11:53:51 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-08-21 13:47:00 -07:00
2025-07-23 08:15:21 -07:00
2025-07-23 08:15:18 -07:00
2025-09-12 10:41:18 -07:00
2025-07-23 08:15:22 -07:00
2025-09-18 10:07:00 -07:00
2025-07-23 08:15:21 -07:00
2025-09-24 11:53:51 -07:00
2025-07-23 08:15:20 -07:00
2024-11-01 12:53:19 -04:00
2025-07-23 08:15:20 -07:00
2025-07-23 08:15:22 -07:00
2025-09-12 10:41:21 -07:00
2025-04-15 08:24:35 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-03-03 08:17:47 -08:00
2025-07-23 08:15:18 -07:00
2025-08-09 17:22:01 -07:00
2025-07-01 14:46:38 -07:00
2025-08-04 08:10:33 -07:00
2025-09-24 11:53:51 -07:00
2025-06-04 08:52:25 -07:00
2025-07-23 08:15:20 -07:00
2025-08-11 09:19:40 -07:00
2025-08-22 13:13:20 -07:00
2024-12-06 20:20:04 +09:00
2025-09-24 11:53:51 -07:00
2025-07-23 08:15:22 -07:00
2025-09-24 11:53:51 -07:00
2025-01-17 13:30:03 -08:00
2025-09-24 11:53:51 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-09-24 11:53:50 -07:00
2025-04-24 17:25:34 -07:00
2025-07-23 08:15:22 -07:00
2025-09-08 14:54:35 -07:00
2025-08-29 09:46:07 -07:00
2025-09-08 14:54:35 -07:00
2025-07-01 14:58:24 -07:00
2025-09-10 14:29:49 -07:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-08-08 11:13:12 -07:00
2025-08-21 13:47:00 -07:00
2025-09-18 10:07:00 -07:00
2025-08-05 11:53:55 -07:00
2025-07-16 22:16:15 -07:00
2025-09-12 10:41:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-08-21 13:47:00 -07:00
2025-09-24 11:53:51 -07:00
2025-09-24 11:53:51 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:18 -07:00
2025-08-29 09:46:07 -07:00
2025-07-23 08:15:22 -07:00
2025-09-18 10:07:00 -07:00
2025-09-24 11:53:50 -07:00
2025-08-21 13:46:57 -07:00
2025-09-02 09:58:35 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-08-21 13:46:58 -07:00
2025-10-16 10:08:54 -07:00
2025-08-05 11:53:55 -07:00
2025-06-05 08:35:22 -07:00
2025-09-04 11:36:40 -07:00
2025-07-23 08:15:18 -07:00
2025-08-04 08:10:33 -07:00
2025-08-04 08:10:33 -07:00
2025-09-10 14:29:49 -07:00
2025-09-18 10:07:00 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-01 14:58:24 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-09-23 11:53:40 -07:00
2025-07-23 08:15:18 -07:00
2025-08-05 11:53:56 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:22 -07:00
2025-08-25 09:48:13 -07:00
2025-08-25 09:48:13 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-01-17 13:30:03 -08:00
2024-12-18 10:44:30 -08:00
2025-08-21 13:46:59 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:21 -07:00
2025-07-23 08:15:22 -07:00