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): def test_get_outputs(self):
tmp_dir = self.mkdtemp() tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c') 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) ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx', dist = Distribution({'name': 'xx',
'ext_modules': [ext]}) 'ext_modules': [ext]})

View File

@ -1792,7 +1792,7 @@ test_unicode_compare_with_ascii(PyObject *self) {
return NULL; return NULL;
} }
Py_RETURN_NONE; Py_RETURN_NONE;
}; }
/* This is here to provide a docstring for test_descr. */ /* This is here to provide a docstring for test_descr. */
static PyObject * static PyObject *

View File

@ -583,7 +583,7 @@ proxy_iternext(PyWeakReference *proxy)
} }
WRAP_METHOD(proxy_bytes, "__bytes__"); WRAP_METHOD(proxy_bytes, "__bytes__")
static PyMethodDef proxy_methods[] = { static PyMethodDef proxy_methods[] = {

View File

@ -3101,7 +3101,7 @@ imp_make_magic(long magic)
buf[3] = (char) ((magic >> 24) & 0xff); buf[3] = (char) ((magic >> 24) & 0xff);
return PyBytes_FromStringAndSize(buf, 4); return PyBytes_FromStringAndSize(buf, 4);
}; }
static PyObject * static PyObject *
imp_get_magic(PyObject *self, PyObject *noargs) imp_get_magic(PyObject *self, PyObject *noargs)