From: Paul Floyd Date: Sun, 5 Mar 2023 15:34:50 +0000 (+0100) Subject: Fix a compiler warning X-Git-Tag: VALGRIND_3_21_0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15fdfa846446d73eb596dbbc138ca40532efa6a5;p=thirdparty%2Fvalgrind.git Fix a compiler warning --- 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))) { \