]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix warning building memcheck/tests/memalign2
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 19 Apr 2022 20:36:36 +0000 (22:36 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 19 Apr 2022 20:36:36 +0000 (22:36 +0200)
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);

memcheck/tests/Makefile.am

index 7c270dd3de5fda9991f61cfd16c5c49815daa5e5..eb6725f8d274a63a5bc06e9fdc4dee8a4534770f 100644 (file)
@@ -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