diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2011-11-06 13:06:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-06 10:43:18 -0800 |
commit | 83838d5c1b8ca2efee52184136776c3cf7d5df2f (patch) | |
tree | c81f344ab112142f34dacf9d205f5aca58c32382 /t/t3418-rebase-continue.sh | |
parent | apply: get rid of useless x < 0 comparison on a size_t type (diff) | |
download | tgif-83838d5c1b8ca2efee52184136776c3cf7d5df2f.tar.xz |
cast variable in call to free() in builtin/diff.c and submodule.c
Both of these free() calls are freeing a "const unsigned char (*)[20]"
type while free() expects a "void *". This results in the following
warning under clang 2.9:
builtin/diff.c:185:7: warning: passing 'const unsigned char (*)[20]' to parameter of type 'void *' discards qualifiers
free(parent);
^~~~~~
submodule.c:394:7: warning: passing 'const unsigned char (*)[20]' to parameter of type 'void *' discards qualifiers
free(parents);
^~~~~~~
This free()-ing without a cast was added by Jim Meyering to
builtin/diff.c in v1.7.6-rc3~4 and later by Fredrik Gustafsson in
submodule.c in v1.7.7-rc1~25^2.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3418-rebase-continue.sh')
0 files changed, 0 insertions, 0 deletions