Re: apply pragma system_header to python headers
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-25T17:36:50Z
Lists: pgsql-hackers
Attachments
- v2-apply-system_header-pragma.patch (text/x-diff) patch v2
I wrote: > Probably a better way is to invent a separate header "plpython_system.h" > that just includes the Python headers, to scope the pragma precisely. > (I guess it could have the fixup #defines we're wrapping those headers > in, too.) > The same idea would work in plperl. After updating one of my test machines to Fedora 39, I'm seeing these Python warnings too. So here's a fleshed-out patch proposal for doing it like that. regards, tom lane
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