treewide: replace assert() with ASSERT() in special cases
When the compiler/linker cannot verify that an assert() invocation is free of side effects for us (e.g. because the assertion includes some kind of function call), replace the use of assert() with ASSERT(). Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
85e4f762c2
commit
5633aa3af1
@@ -2706,7 +2706,7 @@ static int index_stream_convert_blob(struct index_state *istate,
|
||||
struct strbuf sbuf = STRBUF_INIT;
|
||||
|
||||
assert(path);
|
||||
assert(would_convert_to_git_filter_fd(istate, path));
|
||||
ASSERT(would_convert_to_git_filter_fd(istate, path));
|
||||
|
||||
convert_to_git_filter_fd(istate, path, fd, &sbuf,
|
||||
get_conv_flags(flags));
|
||||
|
||||
Reference in New Issue
Block a user