mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 20:56:40 +00:00
Fix compiler warnings
* tests-clar/status: remove an unused variable * clone: fix -Wmaybe-uninitialized warning
This commit is contained in:
parent
9adfa7d147
commit
aa4437f637
@ -153,7 +153,7 @@ static int update_head_to_new_branch(
|
||||
const git_oid *target,
|
||||
const char *name)
|
||||
{
|
||||
git_reference *tracking_branch;
|
||||
git_reference *tracking_branch = NULL;
|
||||
int error;
|
||||
|
||||
if ((error = create_tracking_branch(
|
||||
|
||||
@ -156,7 +156,6 @@ void test_status_ignore__ignore_pattern_contains_space(void)
|
||||
void test_status_ignore__ignore_pattern_ignorecase(void)
|
||||
{
|
||||
unsigned int flags;
|
||||
const mode_t mode = 0777;
|
||||
bool ignore_case;
|
||||
git_index *index;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user