Commit aa4437f6 by Michael Schubert

Fix compiler warnings

* tests-clar/status: remove an unused variable
* clone: fix -Wmaybe-uninitialized warning
parent 9adfa7d1
...@@ -153,7 +153,7 @@ static int update_head_to_new_branch( ...@@ -153,7 +153,7 @@ static int update_head_to_new_branch(
const git_oid *target, const git_oid *target,
const char *name) const char *name)
{ {
git_reference *tracking_branch; git_reference *tracking_branch = NULL;
int error; int error;
if ((error = create_tracking_branch( if ((error = create_tracking_branch(
......
...@@ -156,7 +156,6 @@ void test_status_ignore__ignore_pattern_contains_space(void) ...@@ -156,7 +156,6 @@ void test_status_ignore__ignore_pattern_contains_space(void)
void test_status_ignore__ignore_pattern_ignorecase(void) void test_status_ignore__ignore_pattern_ignorecase(void)
{ {
unsigned int flags; unsigned int flags;
const mode_t mode = 0777;
bool ignore_case; bool ignore_case;
git_index *index; git_index *index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment