Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2004-09-27 21:43:30

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at