From: Dong-hee Na Date: Fri, 2 Jun 2023 16:00:50 +0000 (+0900) Subject: gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243) X-Git-Tag: v3.13.0a1~1917 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839;p=thirdparty%2FPython%2Fcpython.git gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243) gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2) --- diff --git a/Python/assemble.c b/Python/assemble.c index 46a21809d9c0..24ecc717eff1 100644 --- a/Python/assemble.c +++ b/Python/assemble.c @@ -145,6 +145,7 @@ assemble_exception_table(struct assembler *a, instr_sequence *instrs) int ioffset = 0; _PyCompile_ExceptHandlerInfo handler; handler.h_offset = -1; + handler.h_startdepth = -1; handler.h_preserve_lasti = -1; int start = -1; for (int i = 0; i < instrs->s_used; i++) {