You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppress uninitialized variable warnings for small stack allocations
Add macros to disable and re-enable compiler-specific warnings about
possibly uninitialized variables (`-Wmaybe-uninitialized` for GCC,
`-Wuninitialized` for Clang, and warning C4700 for MSVC). Use these
macros in `_PyEvalFramePushAndInit_Ex()` to suppress false positives
on stack-allocated arrays like `stack_array`.
This also addresses warnings such as the one in `pycore_call.h` when
using `small_stack[_PY_FASTCALL_SMALL_STACK]` that may be flagged by
GCC's `-Wmaybe-uninitialized`.
0 commit comments