• Christian Heimes's avatar
    Silence expression result unused warnings with clang. · d3afe781
    Christian Heimes yazdı
    The PyObject_INIT() macros returns obj:
    
    ../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
            PyObject_INIT(op, &PyCFunction_Type);
                          ^~
    ../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
        ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                        ^
    1 warning generated.
    d3afe781
classobject.c 19.1 KB