[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

Michael Felt report at bugs.python.org
Wed Dec 20 14:36:36 EST 2017


Michael Felt <michael at felt.demon.nl> added the comment:

OOps - wrong error! 

It is the new fsid variable!

michael at x071:[/data/prj/python/git/python3-3.7.0.a3]xlc_r  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5      -I. -I./Include -I/opt/in>
"./Modules/posixmodule.c", line 5514.11: 1506-131 (W) Explicit dimension specification or initializer required for an auto or static array.
"./Modules/posixmodule.c", line 9328.64: 1506-280 (S) Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed.

     9326 |     PyStructSequence_SET_ITEM(v, 9, PyLong_FromLong((long) st.f_namemax));
     9326 +     (((PyTupleObject *)(v))->ob_item[9] = PyLong_FromLong((long) st.f_namemax));
     9327 | #endif
"./Modules/posixmodule.c", line 9328.64: 1506-280 (S) Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed
.
     9328 |     PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid));
     9328 +     (((PyTupleObject *)(v))->ob_item[10] = PyLong_FromUnsignedLong(st.f_fsid));
     9329 |     if (PyErr_Occurred()) {
     9330 |         Py_DECREF(v);
     9330 +         do { PyObject *_py_decref_tmp = (PyObject *)(v); if (   --(_py_decref_tmp)->ob_refcnt != 0) ; else (      (*(((PyObject*)(_py_d
ecref_tmp))->ob_type)->tp_dealloc)((PyObject *)(_py_decref_tmp))); } while (0);

----------
title: AIX (xlc_r) compile error with Modules/posixmodule.c: Explicit dimension specification or initializer required -> AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32390>
_______________________________________


More information about the Python-bugs-list mailing list