|
From: Paul F. <pa...@so...> - 2022-04-19 20:37:20
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=8b2cf214afb2590ecef5ff7cabeb6ceec3862ade commit 8b2cf214afb2590ecef5ff7cabeb6ceec3862ade Author: Paul Floyd <pj...@wa...> Date: Tue Apr 19 22:36:36 2022 +0200 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: --- memcheck/tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 |