diff options
| author | Denton Liu <liu.denton@gmail.com> | 2025-08-04 22:31:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-05 08:22:53 -0700 |
| commit | 3a7e783d9c5334cc5ea1af74b42297560ce697ce (patch) | |
| tree | a9b47c12393ac9ae8b27859771124b088c569361 /commit.c | |
| parent | remote: bail early from set_head() if missing remote name (diff) | |
| download | git-3a7e783d9c5334cc5ea1af74b42297560ce697ce.tar.gz git-3a7e783d9c5334cc5ea1af74b42297560ce697ce.zip | |
t/unit-tests/clar: fix -Wmaybe-uninitialized with -Og
When building with -Og on gcc 15.1.1, the build produces a warning. In
practice, though, this cannot be hit because `exact` acts as a guard and
that variable can only be set after `matchlen` is already initialized
Assign a default value to `matchlen` so that the warning is silenced.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
