Zackery Spytz <zsp...@gmail.com> added the comment:

Commit b1263d5a60d3f7ab02dd28409fff59b3815a3f67 causes GCC 9.1.0 to give a 
warning in Objects/descrobject.c.

Objects/descrobject.c:1050:19: warning: cast between incompatible function 
types from ‘PyObject * (*)(mappingproxyobject *, PyObject * const*, 
Py_ssize_t)’ {aka ‘struct _object * (*)(struct <anonymous> *, struct _object * 
const*, long int)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct 
_object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type]
 1050 |     {"get",       (PyCFunction)mappingproxy_get,        METH_FASTCALL,
      |                   ^

PR 14814 fixes this.

----------
nosy: +ZackerySpytz

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37337>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to