pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Hide warnings from Python headers when using gcc-compatible comp
6+ messages / 1 participants
[nested] [flat]

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5f8d6d7097fee4aa3a6da056489e03b7b1a98871

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/plperl.h            | 195 +---------------------------------
src/pl/plperl/plperl_system.h     | 215 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/plpython.h        |  73 +------------
src/pl/plpython/plpython_system.h | 103 ++++++++++++++++++
6 files changed, 328 insertions(+), 265 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/58c3151bbc045e8f575027f53c79e328381e7e61

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/meson.build         |   1 +
src/pl/plperl/plperl.h            | 195 +---------------------------------
src/pl/plperl/plperl_system.h     | 215 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/meson.build       |   1 +
src/pl/plpython/plpython.h        |  23 +---
src/pl/plpython/plpython_system.h |  53 ++++++++++
8 files changed, 280 insertions(+), 215 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b0115e7e20a6cbf1705d0661be09383c89c59bc1

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/meson.build         |   1 +
src/pl/plperl/plperl.h            | 195 +---------------------------------
src/pl/plperl/plperl_system.h     | 215 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/meson.build       |   1 +
src/pl/plpython/plpython.h        |  23 +---
src/pl/plpython/plpython_system.h |  53 ++++++++++
8 files changed, 280 insertions(+), 215 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1613e2fae1ab4d66d949a00e7378721f2c8dcfbe

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/plperl.h            | 194 +---------------------------------
src/pl/plperl/plperl_system.h     | 214 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/plpython.h        | 134 +-----------------------
src/pl/plpython/plpython_system.h | 164 +++++++++++++++++++++++++++++
6 files changed, 388 insertions(+), 325 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7978eee02e9a683650266ef8ef6bc7d44573ddf9

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/plperl.h            | 195 +---------------------------------
src/pl/plperl/plperl_system.h     | 215 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/plpython.h        | 104 +-----------------
src/pl/plpython/plpython_system.h | 134 ++++++++++++++++++++++++
6 files changed, 359 insertions(+), 296 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Hide warnings from Python headers when using gcc-compatible comp
@ 2023-12-26 21:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2023-12-26 21:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hide warnings from Python headers when using gcc-compatible compiler.

Like commit 388e80132, use "#pragma GCC system_header" to silence
warnings appearing within the Python headers, since newer Python
versions no longer worry about some restrictions we still use like
-Wdeclaration-after-statement.

This patch improves on 388e80132 by inventing a separate wrapper
header file, allowing the pragma to be tightly scoped to just
the Python headers and not other stuff we have laying about in
plpython.h.  I applied the same technique to plperl for the same
reason: the original patch suppressed warnings for a good deal
of our own code, not only the Perl headers.

Like the previous commit, back-patch to supported branches.

Peter Eisentraut and Tom Lane

Discussion: https://postgr.es/m/ae523163-6d2a-4b81-a875-832e48dec502@eisentraut.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/48e7971643e82c564dbce5a982511cc5c56b5738

Modified Files
--------------
src/pl/plperl/GNUmakefile         |   4 +-
src/pl/plperl/plperl.h            | 194 +---------------------------------
src/pl/plperl/plperl_system.h     | 214 ++++++++++++++++++++++++++++++++++++++
src/pl/plpython/Makefile          |   3 +-
src/pl/plpython/plpython.h        | 104 +-----------------
src/pl/plpython/plpython_system.h | 134 ++++++++++++++++++++++++
6 files changed, 358 insertions(+), 295 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2023-12-26 21:16 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>
2023-12-26 21:16 pgsql: Hide warnings from Python headers when using gcc-compatible comp Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox