Commit 603c80f
committed
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,
as on the main branch.1 parent f841cf9 commit 603c80f
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 | |
|---|---|---|---|
| |||
7199 | 7199 | | |
7200 | 7200 | | |
7201 | 7201 | | |
7202 | | - | |
7203 | | - | |
7204 | | - | |
7205 | | - | |
7206 | | - | |
7207 | | - | |
7208 | | - | |
7209 | | - | |
7210 | | - | |
7211 | | - | |
7212 | | - | |
7213 | | - | |
7214 | | - | |
7215 | | - | |
7216 | | - | |
| 7202 | + | |
| 7203 | + | |
| 7204 | + | |
| 7205 | + | |
| 7206 | + | |
| 7207 | + | |
| 7208 | + | |
| 7209 | + | |
| 7210 | + | |
| 7211 | + | |
| 7212 | + | |
| 7213 | + | |
| 7214 | + | |
| 7215 | + | |
| 7216 | + | |
| 7217 | + | |
| 7218 | + | |
7217 | 7219 | | |
7218 | 7220 | | |
7219 | 7221 | | |
| |||
0 commit comments