summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Ostkamp <git@ostkamp.fastmail.fm>2007-11-15 23:19:11 +0100
committerJunio C Hamano <gitster@pobox.com>2007-11-15 21:23:47 -0800
commita777e9ca54b5801266486a16dc0d25c82b38014d (patch)
treea3d09fd2b22ab8d905e7ff8f7adbe5d54ed54e08
parent549799b4a1741fe765fff2c91808b4524ea2d7fb (diff)
downloadgit-a777e9ca54b5801266486a16dc0d25c82b38014d.tar.gz
Remove unreachable statements
Solaris Workshop Compiler found a few unreachable statements. Signed-off-by: Guido Ostkamp <git@ostkamp.fastmail.fm> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-apply.c1
-rw-r--r--utf8.c1
-rw-r--r--xdiff/xdiffi.c2
-rw-r--r--xdiff/xutils.c2
4 files changed, 0 insertions, 6 deletions
diff --git a/builtin-apply.c b/builtin-apply.c
index 8edcc08b61..91f8752ff7 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -683,7 +683,6 @@ static char *git_header_name(char *line, int llen)
}
}
}
- return NULL;
}
/* Verify that we recognize the lines following a git header */
diff --git a/utf8.c b/utf8.c
index 8095a71d39..9efcdb9c09 100644
--- a/utf8.c
+++ b/utf8.c
@@ -284,7 +284,6 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width)
text++;
}
}
- return w;
}
int is_encoding_utf8(const char *name)
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 5cb7171a8f..1bad8462fb 100644
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
@@ -257,8 +257,6 @@ static long xdl_split(unsigned long const *ha1, long off1, long lim1,
return ec;
}
}
-
- return -1;
}
diff --git a/xdiff/xutils.c b/xdiff/xutils.c
index 2ade97b257..d7974d1a3e 100644
--- a/xdiff/xutils.c
+++ b/xdiff/xutils.c
@@ -232,8 +232,6 @@ int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
return i1 >= s1 && i2 >= s2;
} else
return s1 == s2 && !memcmp(l1, l2, s1);
-
- return 0;
}
static unsigned long xdl_hash_record_with_whitespace(char const **data,