Commit 8e4580d
gh-154070: Don't leak curses CPPFLAGS into the whole-interpreter build
The wide-character probe ran inside a nested WITH_SAVE_ENV, whose single
CPPFLAGS save slot is not reentrant, so the outer restore leaked
$CURSES_CFLAGS and $PANEL_CFLAGS (-D_XOPEN_SOURCE=600) into
CONFIGURE_CPPFLAGS and thus into every translation unit, producing a
'_XOPEN_SOURCE' redefined warning against pyconfig.h on every file.
Save and restore CPPFLAGS with a dedicated variable around the probe.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4310f6b commit 8e4580d
2 files changed
Lines changed: 24 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7254 | 7254 | | |
7255 | 7255 | | |
7256 | 7256 | | |
7257 | | - | |
7258 | | - | |
7259 | | - | |
7260 | | - | |
7261 | | - | |
7262 | | - | |
7263 | | - | |
7264 | | - | |
7265 | | - | |
7266 | | - | |
7267 | | - | |
7268 | | - | |
7269 | | - | |
7270 | | - | |
7271 | | - | |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
| 7260 | + | |
| 7261 | + | |
| 7262 | + | |
| 7263 | + | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
| 7267 | + | |
| 7268 | + | |
| 7269 | + | |
| 7270 | + | |
| 7271 | + | |
| 7272 | + | |
| 7273 | + | |
7272 | 7274 | | |
7273 | 7275 | | |
7274 | 7276 | | |
| |||
0 commit comments