Issue #10359: Remove ";" after function definition, invalid in ISO C

This commit is contained in:
Victor Stinner 2010-11-09 09:32:19 +00:00
parent 572895b8eb
commit 3e2b7171bf
4 changed files with 4 additions and 4 deletions

View file

@ -318,7 +318,7 @@ class BuildExtTestCase(TempdirManager,
def test_get_outputs(self):
tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c')
self.write_file(c_file, 'void PyInit_foo(void) {};\n')
self.write_file(c_file, 'void PyInit_foo(void) {}\n')
ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx',
'ext_modules': [ext]})