Skip to content

Commit

Permalink
Remove invalid GCC attribute usage when PEP-489 is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 18, 2018
1 parent d902b7c commit 52486bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Compiler/ModuleNode.py
Expand Up @@ -2297,7 +2297,7 @@ def generate_module_init_func(self, imported_modules, env, code):

code.putln("")
# main module init code lives in Py_mod_exec function, not in PyInit function
code.putln("static int %s(PyObject *%s) CYTHON_SMALL_CODE " % (
code.putln("static int %s(PyObject *%s)" % (
self.mod_init_func_cname(Naming.pymodule_exec_func_cname, env),
Naming.pymodinit_module_arg))
code.putln("#endif") # PEP489
Expand Down

0 comments on commit 52486bd

Please sign in to comment.