Skip to content

Commit

Permalink
Add new warning suppression for test_em_asm_c89 (#21583)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dschuff committed Mar 22, 2024
1 parent 86b6aff commit ecdca7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -11562,7 +11562,8 @@ def test_em_asm_c89(self):
}\n''')
self.run_process([EMCC, '-c', 'src.c',
'-pedantic', '-Wall', '-Werror',
'-Wno-gnu-zero-variadic-macro-arguments'])
'-Wno-gnu-zero-variadic-macro-arguments',
'-Wno-c23-extensions'])

def test_em_asm_strict_c(self):
create_file('src.c', '''
Expand Down

0 comments on commit ecdca7b

Please sign in to comment.