From 50ad672735231d02615967c896edd0ed8b8768b0 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Mon, 22 Dec 2008 09:02:31 -0300 Subject: [PATCH] fix function declaration in utility code --- Cython/Compiler/ExprNodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 5c44f7d8..febfaeed 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -5414,10 +5414,10 @@ static INLINE void __Pyx_RaiseNoneAttributeError(const char* attrname) { raise_noneindex_error_utility_code = UtilityCode( proto = """ -static INLINE void __Pyx_RaiseNoneIndexingError(); +static INLINE void __Pyx_RaiseNoneIndexingError(void); """, impl = """ -static INLINE void __Pyx_RaiseNoneIndexingError() { +static INLINE void __Pyx_RaiseNoneIndexingError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is unsubscriptable"); } """) -- 2.26.2