diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-10-13 13:34:15 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-10-26 22:13:40 -0400 |
commit | 369b0217330383925d8091ae01079789cde80598 (patch) | |
tree | e3c14a87d6b43bf0a589ce8cd6dba09501040a7c /src/transaction.c | |
parent | 70f7e2c6e3fc908dd6a4e027dc43d5ce5be94d75 (diff) | |
download | libgit2-369b0217330383925d8091ae01079789cde80598.tar.gz |
Clean up various compiler warnings
Diffstat (limited to 'src/transaction.c')
-rw-r--r-- | src/transaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transaction.c b/src/transaction.c index ebb943cea..1a4fffb36 100644 --- a/src/transaction.c +++ b/src/transaction.c @@ -274,7 +274,7 @@ static int update_target(git_refdb *db, transaction_node *node) } else if (node->ref_type == GIT_REF_SYMBOLIC) { ref = git_reference__alloc_symbolic(node->name, node->target.symbolic); } else { - assert(0); + abort(); } GITERR_CHECK_ALLOC(ref); @@ -287,7 +287,7 @@ static int update_target(git_refdb *db, transaction_node *node) } else if (node->ref_type == GIT_REF_SYMBOLIC) { error = git_refdb_unlock(db, node->payload, true, update_reflog, ref, node->sig, node->message); } else { - assert(0); + abort(); } git_reference_free(ref); @@ -300,7 +300,7 @@ int git_transaction_commit(git_transaction *tx) { transaction_node *node; git_strmap_iter pos; - int error; + int error = 0; assert(tx); |