
28 Sep
2004
28 Sep
'04
2:43 a.m.
David Abrahams wrote:
/usr/local/src/boost.cvs/libs/python/build/../src/object/function.cpp:101: warning: right-handoperand of comma has no effect
PyObject_INIT(p, &function_type);
That's probably because PyObject_INIT is a macro defined like this:
#define PyObject_INIT(op, typeobj) \ ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op)
) ^^^^
So that has no effect. To GCC I say: so what? The macro is supplied by Python, so there's not much _I_ can do about it.
FYI, you can cast the expression to void if you are going to ignore the fact that it "returns" a pointer. Giovanni Bajo