apply pragma system_header to python headers - Mailing list pgsql-hackers

From Peter Eisentraut
Subject apply pragma system_header to python headers
Date
Msg-id ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org
Whole thread Raw
Responses Re: apply pragma system_header to python headers
Re: apply pragma system_header to python headers
List pgsql-hackers
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.)
Attachment

pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock
Next
From: Amit Kapila
Date:
Subject: Re: Synchronizing slots from primary to standby