diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2018-02-12 00:21:02 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-12 12:19:39 -0800 |
commit | 54360a19566f38b6d21dfd9e77ca0cc62b60ad84 (patch) | |
tree | cd1cd3ac51775fe48bf0f0a23da77f8af01de5ce /t/t5520-pull.sh | |
parent | config.mak.uname: remove SPARSE_FLAGS setting for cygwin (diff) | |
download | tgif-54360a19566f38b6d21dfd9e77ca0cc62b60ad84.tar.xz |
Makefile: suppress a sparse warning for pack-revindex.c
Sparse has, for a long time, been issuing the following warning against
the pack-revindex.c file:
SP pack-revindex.c
pack-revindex.c:64:23: warning: memset with byte count of 262144
This results from a unconditional check, with a hard-coded limit, which
is really only appropriate for the kernel source code. (The check is for
a 'large' byte count in a call to memcpy(), memset(), copy_from_user()
and copy_to_user() functions).
A recent release of sparse (v0.5.1) has introduced some options to allow
this check to be turned off (-Wno-memcpy-max-count) or to specify the
actual limit used (-fmemcpy-max-count=COUNT), rather than a hard-coded
limit of 100000.
In order to suppress the warning, add a target for pack-revindex.sp that
adds the '-Wno-memcpy-max-count' option to the SPARSE_FLAGS variable.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5520-pull.sh')
0 files changed, 0 insertions, 0 deletions