Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e2b717

Browse files
author
Victor Stinner
committed
Issue #10359: Remove ";" after function definition, invalid in ISO C
1 parent 572895b commit 3e2b717

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/distutils/tests/test_build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def test_compiler_option(self):
318318
def test_get_outputs(self):
319319
tmp_dir = self.mkdtemp()
320320
c_file = os.path.join(tmp_dir, 'foo.c')
321-
self.write_file(c_file, 'void PyInit_foo(void) {};\n')
321+
self.write_file(c_file, 'void PyInit_foo(void) {}\n')
322322
ext = Extension('foo', [c_file], optional=False)
323323
dist = Distribution({'name': 'xx',
324324
'ext_modules': [ext]})

Modules/_testcapimodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ test_unicode_compare_with_ascii(PyObject *self) {
17921792
return NULL;
17931793
}
17941794
Py_RETURN_NONE;
1795-
};
1795+
}
17961796

17971797
/* This is here to provide a docstring for test_descr. */
17981798
static PyObject *

Objects/weakrefobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ proxy_iternext(PyWeakReference *proxy)
583583
}
584584

585585

586-
WRAP_METHOD(proxy_bytes, "__bytes__");
586+
WRAP_METHOD(proxy_bytes, "__bytes__")
587587

588588

589589
static PyMethodDef proxy_methods[] = {

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,7 +3101,7 @@ imp_make_magic(long magic)
31013101
buf[3] = (char) ((magic >> 24) & 0xff);
31023102

31033103
return PyBytes_FromStringAndSize(buf, 4);
3104-
};
3104+
}
31053105

31063106
static PyObject *
31073107
imp_get_magic(PyObject *self, PyObject *noargs)

0 commit comments

Comments
 (0)