Title: Python/generated_cases.c.h emits compiler warnings · Issue #106797 · python/cpython · GitHub
Open Graph Title: Python/generated_cases.c.h emits compiler warnings · Issue #106797 · python/cpython
X Title: Python/generated_cases.c.h emits compiler warnings · Issue #106797 · python/cpython
Description: In file included from Python/ceval.c:770: Python/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code] if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; } ^ Python/generated_cases.c.h:3463:43: note: sile...
Open Graph Description: In file included from Python/ceval.c:770: Python/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code] if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; } ^ Python...
X Description: In file included from Python/ceval.c:770: Python/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code] if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; } ^ Python...
Opengraph URL: https://github.com/python/cpython/issues/106797
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python/generated_cases.c.h emits compiler warnings","articleBody":"````\r\n\r\nIn file included from Python/ceval.c:770:\r\nPython/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code]\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\nPython/generated_cases.c.h:3463:43: note: silence by adding parentheses to mark code as explicitly dead\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3437:58: warning: code will never be executed [-Wunreachable-code]\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^~~~\r\nPython/generated_cases.c.h:3437:17: note: silence by adding parentheses to mark code as explicitly dead\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3437:47: warning: code will never be executed [-Wunreachable-code]\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\nPython/generated_cases.c.h:3437:43: note: silence by adding parentheses to mark code as explicitly dead\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3415:58: warning: code will never be executed [-Wunreachable-code]\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^~~~\r\nPython/generated_cases.c.h:3415:17: note: silence by adding parentheses to mark code as explicitly dead\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3415:47: warning: code will never be executed [-Wunreachable-code]\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\nPython/generated_cases.c.h:3415:43: note: silence by adding parentheses to mark code as explicitly dead\r\n if (0) { stack_pointer[-(1 + (0 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3387:51: warning: code will never be executed [-Wunreachable-code]\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\nPython/generated_cases.c.h:3387:43: note: silence by adding parentheses to mark code as explicitly dead\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\nPython/generated_cases.c.h:3365:51: warning: code will never be executed [-Wunreachable-code]\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\nPython/generated_cases.c.h:3365:43: note: silence by adding parentheses to mark code as explicitly dead\r\n if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; }\r\n ^\r\n /* DISABLES CODE */ ( )\r\n````\r\n\r\nNot a significant issue, but good to be fixed.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106798\n* gh-107889\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/corona10","@type":"Person","name":"corona10"},"datePublished":"2023-07-16T03:42:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/106797/cpython/issues/106797"}
| 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:c8c7cad3-620d-da75-3a9f-9acfd892ace7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3C8:13C0C7:FCAFC2:15C0519:696A9483 |
| html-safe-nonce | 0629b3a33d62ff91036a13da79da59d7f88a7e66aa02432d62f326778d31d264 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0M4OjEzQzBDNzpGQ0FGQzI6MTVDMDUxOTo2OTZBOTQ4MyIsInZpc2l0b3JfaWQiOiIxMzg4NTg4MDQ5ODI5MTA2ODE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 44460a0e4af3d3f6d19bbac42136ab3caa305ee31256116df4af33aa10f9c7df |
| hovercard-subject-tag | issue:1806415684 |
| 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/106797/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe9e871df96c701f24d46fd4e095cffeccb65b83f0e608e7cf0b8c483ee75626/python/cpython/issues/106797 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe9e871df96c701f24d46fd4e095cffeccb65b83f0e608e7cf0b8c483ee75626/python/cpython/issues/106797 |
| og:image:alt | In file included from Python/ceval.c:770: Python/generated_cases.c.h:3463:51: warning: code will never be executed [-Wunreachable-code] if (1) { stack_pointer[-(1 + (1 ? 1 : 0))] = res2; } ^ Python... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | corona10 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width