Skip to content

Commit a777e9c

Browse files
Guido Ostkampgitster
authored andcommitted
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>
1 parent 549799b commit a777e9c

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

builtin-apply.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,6 @@ static char *git_header_name(char *line, int llen)
683683
}
684684
}
685685
}
686-
return NULL;
687686
}
688687

689688
/* Verify that we recognize the lines following a git header */

utf8.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width)
284284
text++;
285285
}
286286
}
287-
return w;
288287
}
289288

290289
int is_encoding_utf8(const char *name)

xdiff/xdiffi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ static long xdl_split(unsigned long const *ha1, long off1, long lim1,
257257
return ec;
258258
}
259259
}
260-
261-
return -1;
262260
}
263261

264262

xdiff/xutils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
232232
return i1 >= s1 && i2 >= s2;
233233
} else
234234
return s1 == s2 && !memcmp(l1, l2, s1);
235-
236-
return 0;
237235
}
238236

239237
static unsigned long xdl_hash_record_with_whitespace(char const **data,

0 commit comments

Comments
 (0)