diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-12-06 11:27:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-06 12:20:01 +0100 |
commit | 709fdce0893f93464435841e0eb9f6df3fd73807 (patch) | |
tree | 33bf33aa4f19493368bd0ae5852eb3dc3045aac2 /add-patch.c | |
parent | compat/regex: explicitly ignore "-Wsign-compare" warnings (diff) | |
download | git-709fdce0893f93464435841e0eb9f6df3fd73807.tar.xz git-709fdce0893f93464435841e0eb9f6df3fd73807.zip |
compat/win32: fix -Wsign-compare warning in "wWinMain()"
GCC generates a warning in "headless.c" because we compare `slash` with
`size`, where the former is an `int` and the latter is a `size_t`. Fix
the warning by storing `slash` as a `size_t`, as well.
This commit is being singled out because the file does not include the
"git-compat-util.h" header, and consequently, we cannot easily mark it
with the `DISABLE_SIGN_COMPARE_WARNING` macro.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'add-patch.c')
0 files changed, 0 insertions, 0 deletions