Skip to content

Commit 41998bb

Browse files
committed
Removed "right-hand operand has no effect" warning in gcc.
svn path=/trunk/matplotlib/; revision=3692
1 parent 24206bb commit 41998bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CXX/Extensions.hxx

+3-3
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ namespace Py
474474
: PythonExtensionBase()
475475
{
476476
#ifdef PyObject_INIT
477-
PyObject_INIT( this, type_object() );
477+
(void)PyObject_INIT( this, type_object() );
478478
#else
479-
ob_refcnt = 1;
480-
ob_type = type_object();
479+
ob_refcnt = 1;
480+
ob_type = type_object();
481481
#endif
482482

483483
// every object must support getattr

0 commit comments

Comments
 (0)