From 52486bd081330deb3cd833cc49edb33e1f340cc2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 18 Mar 2018 11:06:14 +0100 Subject: Remove invalid GCC attribute usage when PEP-489 is enabled. --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cython/Compiler/ModuleNode.py') diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 31266ec80..3e18010ef 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2297,7 +2297,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): 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 -- cgit v1.2.1