aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-25 09:00:43 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commite3dd9164a1fdab2ba9130b1a2d32338f052a281c (patch)
treea62bde62339d3788cc0cdfc7a485157d3b0399f5 /malloc
parent5e66de71ee1840cf204ea9cb865edd1e7a9595ab (diff)
downloadglibc-e3dd9164a1fdab2ba9130b1a2d32338f052a281c.zip
glibc-e3dd9164a1fdab2ba9130b1a2d32338f052a281c.tar.gz
glibc-e3dd9164a1fdab2ba9130b1a2d32338f052a281c.tar.bz2
malloc: Suppress clang warning on tst-memalign
Diffstat (limited to 'malloc')
-rw-r--r--malloc/tst-memalign.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/tst-memalign.c b/malloc/tst-memalign.c
index 563f641..27851f4 100644
--- a/malloc/tst-memalign.c
+++ b/malloc/tst-memalign.c
@@ -83,7 +83,11 @@ do_test (void)
errno = 0;
/* Test to expose integer overflow in malloc internals from BZ #16038. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wnon-power-of-two-alignment");
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wbuiltin-assume-aligned-alignment");
p = memalign (-1, pagesize);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
save = errno;