|
From: Paul F. <pa...@so...> - 2023-03-05 15:35:15
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=15fdfa846446d73eb596dbbc138ca40532efa6a5 commit 15fdfa846446d73eb596dbbc138ca40532efa6a5 Author: Paul Floyd <pj...@wa...> Date: Sun Mar 5 16:34:50 2023 +0100 Fix a compiler warning Diff: --- coregrind/m_replacemalloc/vg_replace_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index c781da5989..cbb9f038e4 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -1984,7 +1984,7 @@ extern int *___errno (void) __attribute__((weak)); \ MALLOC_TRACE("aligned_alloc(al %llu, size %llu)", \ (ULong)alignment, (ULong)size ); \ - if (VG_ALIGNED_ALLOC_SIZE_ZERO && (alignment == 0) \ + if ((VG_ALIGNED_ALLOC_SIZE_ZERO && (alignment == 0)) \ || (VG_ALIGNED_ALLOC_SIZE_MULTIPLE_ALIGN && (size % alignment != 0)) \ || (VG_ALIGNED_ALLOC_ALIGN_POWER_TWO && (alignment & (alignment - 1)) != 0) \ || (VG_ALIGNED_ALLOC_ALIGN_FACTOR_FOUR && (alignment % 4 != 0))) { \ |