This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petere
Recipients petere
Date 2020-02-12.11:55:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581508507.12.0.731337298421.issue39615@roundup.psfhosted.org>
In-reply-to
Content
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;
      |     ^~~~~~~~~~
History
Date User Action Args
2020-02-12 11:55:07peteresetrecipients: + petere
2020-02-12 11:55:07peteresetmessageid: <1581508507.12.0.731337298421.issue39615@roundup.psfhosted.org>
2020-02-12 11:55:07peterelinkissue39615 messages
2020-02-12 11:55:06peterecreate