Merge branch 'ps/build-sign-compare'
Start working to make the codebase buildable with -Wsign-compare. * ps/build-sign-compare: t/helper: don't depend on implicit wraparound scalar: address -Wsign-compare warnings builtin/patch-id: fix type of `get_one_patchid()` builtin/blame: fix type of `length` variable when emitting object ID gpg-interface: address -Wsign-comparison warnings daemon: fix type of `max_connections` daemon: fix loops that have mismatching integer types global: trivial conversions to fix `-Wsign-compare` warnings pkt-line: fix -Wsign-compare warning on 32 bit platform csum-file: fix -Wsign-compare warning on 32-bit platform diff.h: fix index used to loop through unsigned integer config.mak.dev: drop `-Wno-sign-compare` global: mark code units that generate warnings with `-Wsign-compare` compat/win32: fix -Wsign-compare warning in "wWinMain()" compat/regex: explicitly ignore "-Wsign-compare" warnings git-compat-util: introduce macros to disable "-Wsign-compare" warnings
This commit is contained in:
3
commit.c
3
commit.c
@ -1765,7 +1765,6 @@ int commit_tree_extended(const char *msg, size_t msg_len,
|
||||
{ &compat_sig, r->compat_hash_algo },
|
||||
{ &sig, r->hash_algo },
|
||||
};
|
||||
int i;
|
||||
|
||||
/*
|
||||
* We write algorithms in the order they were implemented in
|
||||
@ -1779,7 +1778,7 @@ int commit_tree_extended(const char *msg, size_t msg_len,
|
||||
* We traverse each algorithm in order, and apply the signature
|
||||
* to each buffer.
|
||||
*/
|
||||
for (i = 0; i < ARRAY_SIZE(bufs); i++) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(bufs); i++) {
|
||||
if (!bufs[i].algo)
|
||||
continue;
|
||||
add_header_signature(&buffer, bufs[i].sig, bufs[i].algo);
|
||||
|
Reference in New Issue
Block a user