]> granicus.if.org Git - gc/commit
Workaround 'value of REDIRECT_MALLOC/FREE unknown' cppcheck info messages
authorIvan Maidanski <ivmai@mail.ru>
Sat, 22 Oct 2016 15:21:33 +0000 (18:21 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 22 Oct 2016 15:27:31 +0000 (18:27 +0300)
commit944fdd7736de18353b492a9c7934d546668919d8
treed31b0d891d1008840f4ea224d64fc9942197ad76
parenta315119c0b05dbc54ac4069220373971b5284e99
Workaround 'value of REDIRECT_MALLOC/FREE unknown' cppcheck info messages

* malloc.c [REDIRECT_MALLOC && !REDIRECT_MALLOC_IN_HEADER]
(REDIRECT_MALLOC_F): New macro (defined to REDIRECT_MALLOC unless
CPPCHECK).
* malloc.c [REDIRECT_MALLOC && !REDIRECT_MALLOC_IN_HEADER] (malloc,
calloc, strdup, strndup): Use REDIRECT_MALLOC_F instead of
REDIRECT_MALLOC.
* malloc.c [REDIRECT_FREE && !REDIRECT_MALLOC_IN_HEADER]
(REDIRECT_FREE_F): New macro (defined to REDIRECT_FREE unless
CPPCHECK).
* malloc.c [REDIRECT_FREE && !REDIRECT_MALLOC_IN_HEADER] (free): Use
REDIRECT_FREE_F instead of REDIRECT_FREE.
malloc.c