Fix compiler warnings * tests-clar/status: remove an unused variable * clone: fix -Wmaybe-uninitialized warning
diff --git a/src/clone.c b/src/clone.c
index a5f4867..00e39d3 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -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(
diff --git a/tests-clar/status/ignore.c b/tests-clar/status/ignore.c
index d18ba78..68dc652 100644
--- a/tests-clar/status/ignore.c
+++ b/tests-clar/status/ignore.c
@@ -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;