Skip to content

Commit 937a851

Browse files
committed
warning suppression for GCC
[SVN r25446]
1 parent 8e396f8 commit 937a851

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/object/function.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ function::function(
9898
function_type.ob_type = &PyType_Type;
9999
::PyType_Ready(&function_type);
100100
}
101-
PyObject_INIT(p, &function_type);
101+
102+
(void)( // warning suppression for GCC
103+
PyObject_INIT(p, &function_type)
104+
);
102105
}
103106

104107
function::~function()

0 commit comments

Comments
 (0)