From: Paul Floyd Date: Tue, 19 Apr 2022 20:36:36 +0000 (+0200) Subject: Fix warning building memcheck/tests/memalign2 X-Git-Tag: VALGRIND_3_20_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b2cf214afb2590ecef5ff7cabeb6ceec3862ade;p=thirdparty%2Fvalgrind.git Fix warning building memcheck/tests/memalign2 Was getting warnings with clang like memalign2.c:62:17: warning: requested alignment is not a power of 2 [-Wnon-power-of-two-alignment] p = memalign(0, 100); assert(0 == (long)p % 8); --- diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index 7c270dd3de..eb6725f8d2 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -555,7 +555,7 @@ long_namespace_xml_SOURCES = long_namespace_xml.cpp manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ -memalign2_CFLAGS = $(AM_CFLAGS) +memalign2_CFLAGS = $(AM_CFLAGS) -Wno-non-power-of-two-alignment if VGCONF_OS_IS_SOLARIS memalign2_CFLAGS += -D__EXTENSIONS__ endif