Repository navigation
Commit d8e37a7
committed
gh-162214: Test Py_STATS macro using #ifdef
Replace "#if Py_STATS" with "#ifdef Py_STATS".
All other C files already check for "#ifdef Py_STATS".
Example of fixed compiler warning when building Python with -Wundef:
Python/specialize.c:33:5: warning: 'Py_STATS' is not defined,
evaluates to '0' [-Wundef]
33 | #if Py_STATS
| ^~~~~~~~1 parent 355486e commit d8e37a7
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2294 | 2294 | | |
2295 | 2295 | | |
2296 | 2296 | | |
2297 | | - | |
| 2297 | + | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments