FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-87092: avoid gcc warning on uninitialized struct field in assemble… by corona10 · Pull Request #105243 · python/cpython · GitHub

/ cpython Public

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

Merged
corona10 merged 1 commit into
python: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 into
python:mainfrom
corona10:gh-87092-h_startdepth

Conversation

corona10 commented Jun 2, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

….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 commented Jun 2, 2023

Copy link
Copy Markdown
Member Author

@iritkatriel It will be the last one.

corona10 enabled auto-merge (squash) June 2, 2023 15:50
corona10 merged commit 2f5c1ae into python:main Jun 2, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL