diff options
| author | Tom Lane | 2023-12-26 21:16:29 +0000 |
|---|---|---|
| committer | Tom Lane | 2023-12-26 21:16:37 +0000 |
| commit | 58c3151bbc045e8f575027f53c79e328381e7e61 (patch) | |
| tree | cdd43e3a147ae571246b477a1edf51f544eae05a /src/makefiles | |
| parent | c4fe2e8220462a9688dba4380bda0ccb2ecaabb7 (diff) | |
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/[email protected]
Diffstat (limited to 'src/makefiles')
0 files changed, 0 insertions, 0 deletions
