@matheusbsbs / matheus-bagliano / commits / a777e9ca54
Fork 0

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>

Guido Ostkamp committed Nov 15, 2007 at 23:19 UTC a777e9ca54b5801266486a16dc0d25c82b38014d
4 files changed -6
builtin-apply.c
-1
@@ -683,7 +683,6 @@ static char *git_header_name(char *line, int llen)
683 }
684 }
685 }
686 - return NULL;
686 }
687
688 /* Verify that we recognize the lines following a git header */
utf8.c
-1
@@ -284,7 +284,6 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width)
284 text++;
285 }
286 }
287 - return w;
287 }
288
289 int is_encoding_utf8(const char *name)
xdiff/xdiffi.c
-2
@@ -257,8 +257,6 @@ static long xdl_split(unsigned long const *ha1, long off1, long lim1,
257 return ec;
258 }
259 }
260 -
261 - return -1;
260 }
261
262
xdiff/xutils.c
-2
@@ -232,8 +232,6 @@ int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
232 return i1 >= s1 && i2 >= s2;
233 } else
234 return s1 == s2 && !memcmp(l1, l2, s1);
235 -
236 - return 0;
235 }
236
237 static unsigned long xdl_hash_record_with_whitespace(char const **data,