From 4f6c711fc0b8c32f084584b308a42e1ed2200610 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 14 May 2026 14:42:22 -0400 Subject: [PATCH] build(test): declaration specifier expected near '_Static_assert' #39788 Problem: On "arm clang unittest" CI job, `make unittest` sometimes fails with lots of these messages: FAILED test/unit/testutil.lua @ 773: ... test/unit/testutil.lua:773: test/unit/testutil.lua:297: declaration specifier expected near '_Static_assert' at line 429 exit code: 256 stack traceback: test/unit/testutil.lua:773: in function 'itp_parent' test/unit/testutil.lua:811: in function Solution: Update filter_complex_blocks. (cherry picked from commit adb5d8a6460b9005c870467f4dc962278b708a8f) --- test/unit/testutil.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua index 8604cb27bb..7aa2be5d20 100644 --- a/test/unit/testutil.lua +++ b/test/unit/testutil.lua @@ -164,6 +164,8 @@ local function filter_complex_blocks(body) or string.find(line, 'mach_vm_range_recipe') or string.find(line, 'ipc_info_object_type_t') or string.find(line, '__Reply__mach_port_kobject_t') + -- C11 keyword, not understood by LuaJIT FFI. Emitted by some libc headers (e.g. ARM/clang glibc). + or string.find(line, '_Static_assert', 1, true) ) then -- Remove GCC's extension keyword which is just used to disable warnings.