mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
Fix compile failure on Linux
Use SizeT rather than size_t Also make tests quieter with -q
This commit is contained in:
parent
114c528dab
commit
18ca012c08
@ -932,8 +932,8 @@ extern int *___errno (void) __attribute__((weak));
|
||||
|
||||
#define DELETE_SIZED(soname, fnname, vg_replacement) \
|
||||
\
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size) \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size) \
|
||||
{ \
|
||||
DO_INIT; \
|
||||
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)size); \
|
||||
@ -1008,8 +1008,8 @@ extern int *___errno (void) __attribute__((weak));
|
||||
|
||||
#define DELETE_ALIGNED(soname, fnname, vg_replacement) \
|
||||
\
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t alignment); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t alignment) \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT alignment); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT alignment) \
|
||||
{ \
|
||||
DO_INIT; \
|
||||
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)alignment); \
|
||||
@ -1021,8 +1021,8 @@ extern int *___errno (void) __attribute__((weak));
|
||||
|
||||
#define DELETE_SIZED_ALIGNED(soname, fnname, vg_replacement) \
|
||||
\
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size, size_t alignment); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, size_t size, size_t alignment) \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size, SizeT alignment); \
|
||||
void VG_REPLACE_FUNCTION_EZU(10050,soname,fnname) (void *p, SizeT size, SizeT alignment) \
|
||||
{ \
|
||||
DO_INIT; \
|
||||
TRIGGER_MEMCHECK_ERROR_IF_UNDEFINED((UWord)size); \
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
Conditional jump or move depends on uninitialised value(s)
|
||||
at 0x........: operator new(unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
|
||||
by 0x........: main (in /usr/home/paulf/scratch/valgrind/memcheck/tests/sized_aligned_new_delete_args)
|
||||
@ -71,13 +70,3 @@ Conditional jump or move depends on uninitialised value(s)
|
||||
at 0x........: operator delete[](void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
|
||||
by 0x........: main (in /usr/home/paulf/scratch/valgrind/memcheck/tests/sized_aligned_new_delete_args)
|
||||
|
||||
|
||||
HEAP SUMMARY:
|
||||
in use at exit: 0 bytes in 0 blocks
|
||||
total heap usage: 8 allocs, 8 frees, 128 bytes allocated
|
||||
|
||||
For a detailed leak analysis, rerun with: --leak-check=full
|
||||
|
||||
Use --track-origins=yes to see where uninitialised values come from
|
||||
For lists of detected and suppressed errors, rerun with: -s
|
||||
ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0)
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
Conditional jump or move depends on uninitialised value(s)
|
||||
at 0x........: operator new(unsigned int, std::align_val_t) (vg_replace_malloc.c:...)
|
||||
by 0x........: main (sized_aligned_new_delete_args.cpp:16)
|
||||
@ -71,13 +70,3 @@ Conditional jump or move depends on uninitialised value(s)
|
||||
at 0x........: operator delete[](void*, unsigned int, std::align_val_t) (vg_replace_malloc.c:...)
|
||||
by 0x........: main (sized_aligned_new_delete_args.cpp:40)
|
||||
|
||||
|
||||
HEAP SUMMARY:
|
||||
in use at exit: 0 bytes in 0 blocks
|
||||
total heap usage: 8 allocs, 8 frees, 128 bytes allocated
|
||||
|
||||
For a detailed leak analysis, rerun with: --leak-check=full
|
||||
|
||||
Use --track-origins=yes to see where uninitialised values come from
|
||||
For lists of detected and suppressed errors, rerun with: -s
|
||||
ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0)
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
prog: sized_aligned_new_delete_args
|
||||
prereq: test -e ./sized_aligned_new_delete_args
|
||||
vgopts: -q
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user