Title: Unreachable code warnings while building latest main at 48c70b8 · Issue #128086 · python/cpython · GitHub
Open Graph Title: Unreachable code warnings while building latest main at 48c70b8 · Issue #128086 · python/cpython
X Title: Unreachable code warnings while building latest main at 48c70b8 · Issue #128086 · python/cpython
Description: Bug report Bug description: I ran the ./configure and make, here are the warnings shown. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initia...
Open Graph Description: Bug report Bug description: I ran the ./configure and make, here are the warnings shown. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-un...
X Description: Bug report Bug description: I ran the ./configure and make, here are the warnings shown. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-un...
Opengraph URL: https://github.com/python/cpython/issues/128086
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unreachable code warnings while building latest main at 48c70b8","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nI ran the `./configure` and `make`, here are the warnings shown.\r\n\r\n```\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast.o Python/ast.c\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast_opt.o Python/ast_opt.c\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ast_unparse.o Python/ast_unparse.c\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/bltinmodule.o Python/bltinmodule.c\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/brc.o Python/brc.c\r\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c\r\nIn file included from Python/ceval.c:904:\r\nPython/generated_cases.c.h:808:31: warning: code will never be executed [-Wunreachable-code]\r\n 808 | for (int _i = oparg; --_i \u003e= 0;) {\r\n | ^~~~~\r\nPython/generated_cases.c.h:694:31: warning: code will never be executed [-Wunreachable-code]\r\n 694 | for (int _i = oparg*2; --_i \u003e= 0;) {\r\n | ^~~~~\r\n2 warnings generated.\r\n```\r\n\r\nOperating System:\r\n```\r\n➜ cpython git:(main) uname -a\r\nDarwin SREDDY- 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27 PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64\r\n```\r\n\r\nMain branch commit : 48c70b8f7dfd00a018abbac50ea987f54fa4db51\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nmacOS","author":{"url":"https://github.com/srinivasreddy","@type":"Person","name":"srinivasreddy"},"datePublished":"2024-12-19T05:32:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/128086/cpython/issues/128086"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2865e41c-f510-811b-f4ea-297f616d0ddf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A508:27E9DD:1E66B3A:2AA3907:696A5A3B |
| html-safe-nonce | 361ae14472e467b894080125fc1bc167e9cb441bc4d70cbfb07bf3e90bb76d50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA4OjI3RTlERDoxRTY2QjNBOjJBQTM5MDc6Njk2QTVBM0IiLCJ2aXNpdG9yX2lkIjoiMjQwMDM5MjM0MzcyNzAwNDIxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db09e88c938746e3fd219274dd44f0eefa5ea03a1f5ea64f0c29937eddc0364a |
| hovercard-subject-tag | issue:2749302733 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/128086/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9de28aa052ad88e8a3dec851330d70b51b06bce26b03d62685d0d4a8d5bea787/python/cpython/issues/128086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9de28aa052ad88e8a3dec851330d70b51b06bce26b03d62685d0d4a8d5bea787/python/cpython/issues/128086 |
| og:image:alt | Bug report Bug description: I ran the ./configure and make, here are the warnings shown. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-un... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srinivasreddy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width