mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Kludge around a compiler warning, and add explanatory comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12526
This commit is contained in:
parent
10962f4094
commit
e32523416e
@ -963,10 +963,13 @@ static size_t my_malloc_size ( void* zone, void* ptr )
|
||||
return res;
|
||||
}
|
||||
|
||||
/* Note that the (void*) casts below are a kludge which stops
|
||||
compilers complaining about the fact that the the replacement
|
||||
functions aren't really of the right type. */
|
||||
static vki_malloc_zone_t vg_default_zone = {
|
||||
NULL, // reserved1
|
||||
NULL, // reserved2
|
||||
my_malloc_size, // JRS fixme: is this right?
|
||||
(void*)my_malloc_size, // JRS fixme: is this right?
|
||||
(void*)VG_REPLACE_FUNCTION_EZU(10020,VG_Z_LIBC_SONAME,malloc_zone_malloc),
|
||||
(void*)VG_REPLACE_FUNCTION_EZU(10060,VG_Z_LIBC_SONAME,malloc_zone_calloc),
|
||||
(void*)VG_REPLACE_FUNCTION_EZU(10130,VG_Z_LIBC_SONAME,malloc_zone_valloc),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user