Skip to content

gh-87092: avoid gcc warning on uninitialized struct field in assemble…#105243

Merged
corona10 merged 1 commit intopython:mainfrom
corona10:gh-87092-h_startdepth
Jun 2, 2023
Merged

gh-87092: avoid gcc warning on uninitialized struct field in assemble…#105243
corona10 merged 1 commit intopython:mainfrom
corona10:gh-87092-h_startdepth

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Jun 2, 2023

….c (part2)


Python/assemble.c: In function ‘_PyAssemble_MakeCodeObject’:
Python/assemble.c:130:9: warning: ‘handler.h_startdepth’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     int depth = handler->h_startdepth - 1;
         ^~~~~
Python/assemble.c:147:34: note: ‘handler.h_startdepth’ was declared here
     _PyCompile_ExceptHandlerInfo handler;
                                  ^~~~~~~

@corona10
Copy link
Member Author

corona10 commented Jun 2, 2023

@iritkatriel It will be the last one.

@corona10 corona10 enabled auto-merge (squash) June 2, 2023 15:50
@corona10 corona10 merged commit 2f5c1ae into python:main Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants