Re: apply pragma system_header to python headers
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-11-06T13:34:41Z
Lists: pgsql-hackers
On 2023-11-06 Mo 07:02, Peter Eisentraut wrote: > Analogous to 388e80132c (which was for Perl) but for Python, I propose > adding #pragma GCC system_header to plpython.h. Without it, you get > tons of warnings about -Wdeclaration-after-statement, starting with > Python 3.12. (In the past, I have regularly sent feedback to Python > to fix their header files, but this is getting old, and we have an > easier solution now.) WFM cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
Commits
-
Hide warnings from Python headers when using gcc-compatible compiler.
- 58c3151bbc04 17.0 landed
- b0115e7e20a6 16.2 landed
- 7978eee02e9a 14.11 landed
- 5f8d6d7097fe 15.6 landed
- 48e7971643e8 13.14 landed
- 1613e2fae1ab 12.18 landed