Message361880
Some inline functions use mixed declarations and code. These end up visible in third-party code that includes Python.h, which might not be using a C99 compiler.
Example:
In file included from /Users/peter/python-builds/3.9/include/python3.9/abstract.h:843,
from /Users/peter/python-builds/3.9/include/python3.9/Python.h:147,
from plpython.h:59,
from plpy_typeio.h:10,
from plpy_cursorobject.h:8,
from plpy_cursorobject.c:14:
/Users/peter/python-builds/3.9/include/python3.9/cpython/abstract.h:74:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
74 | Py_ssize_t offset = tp->tp_vectorcall_offset;
| ^~~~~~~~~~ |
|
Date |
User |
Action |
Args |
2020-02-12 11:55:07 | petere | set | recipients:
+ petere |
2020-02-12 11:55:07 | petere | set | messageid: <1581508507.12.0.731337298421.issue39615@roundup.psfhosted.org> |
2020-02-12 11:55:07 | petere | link | issue39615 messages |
2020-02-12 11:55:06 | petere | create | |
|