git/t/unit-tests
Patrick Steinhardt 80c9e70ebe global: trivial conversions to fix `-Wsign-compare` warnings
We have a bunch of loops which iterate up to an unsigned boundary using
a signed index, which generates warnigs because we compare a signed and
unsigned value in the loop condition. Address these sites for trivial
cases and enable `-Wsign-compare` warnings for these code units.

This patch only adapts those code units where we can drop the
`DISABLE_SIGN_COMPARE_WARNINGS` macro in the same step.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-12-06 20:20:04 +09:00
..
clar t/unit-tests: update clar to 206accb 2024-10-21 16:53:07 -04:00
.gitignore
ctype.c
generate-clar-decls.sh Makefile: extract script to generate clar declarations 2024-10-21 16:53:07 -04:00
generate-clar-suites.sh t/unit-tests: convert "clar-generate.awk" into a shell script 2024-11-18 09:59:25 +09:00
lib-oid.c
lib-oid.h
lib-reftable.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
lib-reftable.h reftable: convert from `strbuf` to `reftable_buf` 2024-10-17 16:59:56 -04:00
strvec.c strvec: introduce new `strvec_splice()` function 2024-11-21 08:23:42 +09:00
t-example-decorate.c global: trivial conversions to fix `-Wsign-compare` warnings 2024-12-06 20:20:04 +09:00
t-hash.c
t-hashmap.c
t-mem-pool.c
t-oid-array.c
t-oidmap.c
t-oidtree.c
t-prio-queue.c global: trivial conversions to fix `-Wsign-compare` warnings 2024-12-06 20:20:04 +09:00
t-reftable-basics.c Merge branch 'ps/reftable-strbuf' 2024-10-30 13:08:01 -04:00
t-reftable-block.c t/unit-tests: check for `reftable_buf` allocation errors 2024-10-17 16:59:56 -04:00
t-reftable-merged.c Merge branch 'ps/reftable-strbuf' 2024-10-30 13:08:01 -04:00
t-reftable-pq.c
t-reftable-reader.c reftable/blocksource: adapt interface name 2024-10-17 16:59:56 -04:00
t-reftable-readwrite.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
t-reftable-record.c t/unit-tests: check for `reftable_buf` allocation errors 2024-10-17 16:59:56 -04:00
t-reftable-stack.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
t-reftable-tree.c reftable/tree: handle allocation failures 2024-10-02 07:53:55 -07:00
t-strbuf.c
t-strcmp-offset.c
t-trailer.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
t-urlmatch-normalization.c
test-lib.c global: mark code units that generate warnings with `-Wsign-compare` 2024-12-06 20:20:02 +09:00
test-lib.h
unit-test.c
unit-test.h