Skip to content

Commit ecdca7b

Browse files
authored
Add new warning suppression for test_em_asm_c89 (#21583)
New versions of clang issue a new warning for this case: error: passing no argument for the '...' parameter of a variadic macro is a C23 extension [-Werror,-Wc23-extensions] Only -Wno-c32-extensions is needed on the new version, but for now use both to work with older and newer clang versions.
1 parent 86b6aff commit ecdca7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_other.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11562,7 +11562,8 @@ def test_em_asm_c89(self):
1156211562
}\n''')
1156311563
self.run_process([EMCC, '-c', 'src.c',
1156411564
'-pedantic', '-Wall', '-Werror',
11565-
'-Wno-gnu-zero-variadic-macro-arguments'])
11565+
'-Wno-gnu-zero-variadic-macro-arguments',
11566+
'-Wno-c23-extensions'])
1156611567

1156711568
def test_em_asm_strict_c(self):
1156811569
create_file('src.c', '''

0 commit comments

Comments
 (0)