зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
549799b4a1
Коммит
a777e9ca54
|
@ -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 */
|
/* Verify that we recognize the lines following a git header */
|
||||||
|
|
1
utf8.c
1
utf8.c
|
@ -284,7 +284,6 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width)
|
||||||
text++;
|
text++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return w;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int is_encoding_utf8(const char *name)
|
int is_encoding_utf8(const char *name)
|
||||||
|
|
|
@ -257,8 +257,6 @@ static long xdl_split(unsigned long const *ha1, long off1, long lim1,
|
||||||
return ec;
|
return ec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -232,8 +232,6 @@ int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
|
||||||
return i1 >= s1 && i2 >= s2;
|
return i1 >= s1 && i2 >= s2;
|
||||||
} else
|
} else
|
||||||
return s1 == s2 && !memcmp(l1, l2, s1);
|
return s1 == s2 && !memcmp(l1, l2, s1);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long xdl_hash_record_with_whitespace(char const **data,
|
static unsigned long xdl_hash_record_with_whitespace(char const **data,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче