Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-27 14:03:14


"Neal D. Becker" <ndbecker2_at_[hidden]> writes:

> Current boost.cvs, gcc-3.4.2:
>
> /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.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk