From b2c10fe852b9cb6d7c9a29352c240ad76adf8ec7 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 10 Sep 2021 17:58:17 -0700 Subject: [PATCH] Avoid compile error on test_aligned_alloc A recent commit taught clang that the first parameter to aligned_alloc should be a power of two alignment, and since then clang emits a warning (which we upgrade to an error) when that argument is a constant that is not a power of two. Since the test actually wants to test the function behavior in that case, ignore the error. --- tests/test_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_core.py b/tests/test_core.py index 9322b22f2a899..517e5e08341d1 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -581,7 +581,8 @@ def test_align64(self): @no_asan('asan errors on corner cases we check') def test_aligned_alloc(self): - self.do_runf(test_file('test_aligned_alloc.c'), '') + self.do_runf(test_file('test_aligned_alloc.c'), '', + emcc_args=['-Wno-non-power-of-two-alignment']) def test_unsigned(self): src = '''