Commit 5cd81bb3 by Arkady Shapkin

Several CppCat warnings fixed

parent d4cb23e4
...@@ -316,7 +316,6 @@ static int blame_internal(git_blame *blame) ...@@ -316,7 +316,6 @@ static int blame_internal(git_blame *blame)
ent->suspect = o; ent->suspect = o;
blame->ent = ent; blame->ent = ent;
blame->path = blame->path;
git_blame__like_git(blame, blame->options.flags); git_blame__like_git(blame, blame->options.flags);
......
...@@ -648,9 +648,6 @@ int git_packfile_unpack( ...@@ -648,9 +648,6 @@ int git_packfile_unpack(
base_type = elem->type; base_type = elem->type;
} }
if (error < 0)
goto cleanup;
switch (base_type) { switch (base_type) {
case GIT_OBJ_COMMIT: case GIT_OBJ_COMMIT:
case GIT_OBJ_TREE: case GIT_OBJ_TREE:
......
...@@ -634,7 +634,8 @@ int git_stash_drop( ...@@ -634,7 +634,8 @@ int git_stash_drop(
entry = git_reflog_entry_byindex(reflog, 0); entry = git_reflog_entry_byindex(reflog, 0);
git_reference_free(stash); git_reference_free(stash);
if ((error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL) < 0)) error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL);
if (error < 0)
goto cleanup; goto cleanup;
/* We need to undo the writing that we just did */ /* We need to undo the writing that we just did */
......
...@@ -314,7 +314,7 @@ static int wait_while_ack(gitno_buffer *buf) ...@@ -314,7 +314,7 @@ static int wait_while_ack(gitno_buffer *buf)
break; break;
if (pkt->type == GIT_PKT_ACK && if (pkt->type == GIT_PKT_ACK &&
(pkt->status != GIT_ACK_CONTINUE || (pkt->status != GIT_ACK_CONTINUE &&
pkt->status != GIT_ACK_COMMON)) { pkt->status != GIT_ACK_COMMON)) {
git__free(pkt); git__free(pkt);
return 0; return 0;
......
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