]> granicus.if.org Git - python/commit
Silence expression result unused warnings with clang.
authorChristian Heimes <christian@cheimes.de>
Wed, 4 Dec 2013 08:27:47 +0000 (09:27 +0100)
committerChristian Heimes <christian@cheimes.de>
Wed, 4 Dec 2013 08:27:47 +0000 (09:27 +0100)
commitd3afe781b15e47784273bbb82da6122bf7be999e
tree27d82efd6f047cc0d39076cb1cd20b872a6adc1c
parent47f02e5e176c87d498601657ccc43bdf92cd9edf
Silence expression result unused warnings with clang.
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.
Objects/bytesobject.c
Objects/classobject.c
Objects/complexobject.c
Objects/floatobject.c
Objects/longobject.c
Objects/methodobject.c
Objects/typeobject.c