Title: Warnings on the current main branch · Issue #108562 · python/cpython · GitHub
Open Graph Title: Warnings on the current main branch · Issue #108562 · python/cpython
X Title: Warnings on the current main branch · Issue #108562 · python/cpython
Description: Bug report CPython versions tested on: CPython main branch Operating systems tested on: Linux Output from running 'python -VV' on the command line: Python 3.13.0a0 (main, Aug 28 2023, 13:54:29) [GCC 12.2.0] A clear and concise descriptio...
Open Graph Description: Bug report CPython versions tested on: CPython main branch Operating systems tested on: Linux Output from running 'python -VV' on the command line: Python 3.13.0a0 (main, Aug 28 2023, 13:54:29) [GC...
X Description: Bug report CPython versions tested on: CPython main branch Operating systems tested on: Linux Output from running 'python -VV' on the command line: Python 3.13.0a0 (main, Aug 28 2023, 13:54...
Opengraph URL: https://github.com/python/cpython/issues/108562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warnings on the current main branch","articleBody":"# Bug report\r\n\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\nLinux\r\n\r\n### Output from running 'python -VV' on the command line:\r\n\r\nPython 3.13.0a0 (main, Aug 28 2023, 13:54:29) [GCC 12.2.0]\r\n\r\n### A clear and concise description of the bug:\r\n\r\nWith\r\n```sh\r\n$ # Mon Aug 28 13:44:26 MSK 2023\r\n$ wget https://github.com/python/cpython/archive/refs/heads/main.zip\r\n$ unzip -x main.zip\r\n$ cd cpython-main/\r\n$ ./configure -q \u0026\u0026 make -s\r\n```\r\nBuild is successful, but I see a bunch of warnings:\r\n```\r\nIn function ‘_io_FileIO_close_impl’,\r\n inlined from ‘_io_FileIO_close’ at ./Modules/_io/clinic/fileio.c.h:34:12:\r\n./Modules/_io/fileio.c:170:9: warning: ‘exc’ may be used uninitialized [-Wmaybe-uninitialized]\r\n 170 | _PyErr_ChainExceptions1(exc);\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n./Modules/_io/fileio.c: In function ‘_io_FileIO_close’:\r\n./Modules/_io/fileio.c:155:15: note: ‘exc’ was declared here\r\n 155 | PyObject *exc;\r\n | ^~~\r\nNote: Deepfreeze may have added some global objects,\r\n so run 'make regen-global-objects' if necessary.\r\nIn function ‘word_to_string’,\r\n inlined from ‘coeff_to_string’ at ./Modules/_decimal/libmpdec/io.c:410:13,\r\n inlined from ‘_mpd_to_string’ at ./Modules/_decimal/libmpdec/io.c:611:18:\r\n./Modules/_decimal/libmpdec/io.c:348:40: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]\r\n 348 | if (s == dot) *s++ = '.'; *s++ = '0' + (char)(x / d); x %= d\r\n | ~~~~~^~~~~~~~~~~~~~~~~~~~~\r\n./Modules/_decimal/libmpdec/io.c:359:14: note: in expansion of macro ‘EXTRACT_DIGIT’\r\n 359 | case 15: EXTRACT_DIGIT(s, x, 100000000000000ULL, dot);\r\n | ^~~~~~~~~~~~~\r\n./Modules/_decimal/libmpdec/io.c:348:40: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]\r\n 348 | if (s == dot) *s++ = '.'; *s++ = '0' + (char)(x / d); x %= d\r\n | ~~~~~^~~~~~~~~~~~~~~~~~~~~\r\n./Modules/_decimal/libmpdec/io.c:360:14: note: in expansion of macro ‘EXTRACT_DIGIT’\r\n 360 | case 14: EXTRACT_DIGIT(s, x, 10000000000000ULL, dot);\r\n | ^~~~~~~~~~~~~\r\n./Modules/_decimal/libmpdec/io.c:348:40: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]\r\n 348 | if (s == dot) *s++ = '.'; *s++ = '0' + (char)(x / d); x %= d\r\n | ~~~~~^~~~~~~~~~~~~~~~~~~~~\r\n./Modules/_decimal/libmpdec/io.c:361:14: note: in expansion of macro ‘EXTRACT_DIGIT’\r\n 361 | case 13: EXTRACT_DIGIT(s, x, 1000000000000ULL, dot);\r\n | ^~~~~~~~~~~~~\r\n[...]\r\n```\r\nN.B. second type of warnings (expansions of EXTRACT_DIGIT) seems to be related to the gcc-12. The first I've seen on the Debian Buster (with gcc-10 per default).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-114751\n* gh-116302\n* gh-116346\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2023-08-28T11:24:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/108562/cpython/issues/108562"}
| 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:8954b150-dc07-dad2-dc2e-ae9549f0209e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECAA:9CED1:256DE8D:32A58E1:696AD9AB |
| html-safe-nonce | e0dcb51603da5005b7711a45a0dd0160605eb0e8a5c50d3c63a0f3a7909405bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0FBOjlDRUQxOjI1NkRFOEQ6MzJBNThFMTo2OTZBRDlBQiIsInZpc2l0b3JfaWQiOiIyMTY4MjEzNDg0NTE1MTY1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0caaa3750ce30d17385a589623b301f0d03f18194d9edf81ddcef0742bb8f86b |
| hovercard-subject-tag | issue:1869565744 |
| 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/108562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b2af58c7f0351fdb4bac7968dd0a20eee01d88381f8aabb50a75191f651e1c3/python/cpython/issues/108562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b2af58c7f0351fdb4bac7968dd0a20eee01d88381f8aabb50a75191f651e1c3/python/cpython/issues/108562 |
| og:image:alt | Bug report CPython versions tested on: CPython main branch Operating systems tested on: Linux Output from running 'python -VV' on the command line: Python 3.13.0a0 (main, Aug 28 2023, 13:54:29) [GC... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skirpichev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width