Title: gh-87092: avoid gcc warning on uninitialized struct field in assemble.c by corona10 · Pull Request #104460 · python/cpython · GitHub
Open Graph Title: gh-87092: avoid gcc warning on uninitialized struct field in assemble.c by corona10 · Pull Request #104460 · python/cpython
X Title: gh-87092: avoid gcc warning on uninitialized struct field in assemble.c by corona10 · Pull Request #104460 · python/cpython
Description: I noticed the warn while I built CPython with GCC8 + PGO + LTO. gcc -pthread -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -fprofile-use -fprofile-correction -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Python/bltinmodule.o Python/bltinmodule.c Python/assemble.c: In function ‘_PyAssemble_MakeCodeObject’: Python/assemble.c:131:8: warning: ‘handler.h_preserve_lasti’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (handler->h_preserve_lasti) { ^ Python/assemble.c:147:34: note: ‘handler.h_preserve_lasti’ was declared here _PyCompile_ExceptHandlerInfo handler; ^~~~~~~ Python/assemble.c:132:15: warning: ‘handler.h_startdepth’ may be used uninitialized in this function [-Wmaybe-uninitialized] depth -= 1; ~~~~~~^~~~ Python/assemble.c:147:34: note: ‘handler.h_startdepth’ was declared here _PyCompile_ExceptHandlerInfo handler; ^~~~~~~ Issue: gh-87092
Open Graph Description: I noticed the warn while I built CPython with GCC8 + PGO + LTO. gcc -pthread -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -flto -fuse-linker-plugin -...
X Description: I noticed the warn while I built CPython with GCC8 + PGO + LTO. gcc -pthread -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -flto -fuse-linker-plugin -...
Opengraph URL: https://github.com/python/cpython/pull/104460
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:b6de5945-4bcb-a970-d106-1a99e44ff239 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 99B6:20019E:105D65:163D86:6969D370 |
| html-safe-nonce | 5503588e8712623ba4aa251ae51094b93164b4dd8a5e368afac5d40b6c64fadc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUI2OjIwMDE5RToxMDVENjU6MTYzRDg2OjY5NjlEMzcwIiwidmlzaXRvcl9pZCI6Ijg5MzgyODUzMjUxMjkyMDg2ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 97a43276839b593e97fa9388439209697793513ecdebac1aefbfa5623c814a28 |
| hovercard-subject-tag | pull_request:1349677611 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/104460/checks |
| twitter:image | https://avatars.githubusercontent.com/u/5110323?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5110323?s=400&v=4 |
| og:image:alt | I noticed the warn while I built CPython with GCC8 + PGO + LTO. gcc -pthread -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -flto -fuse-linker-plugin -... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width