You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler warnings in building Python 3.9 on Windows #87665
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-03-17.18:27:30.933>created_at=<Date2021-03-15.12:12:03.640>labels= ['extension-modules', 'interpreter-core', '3.9']
title='Compiler warnings in building Python 3.9 on Windows'updated_at=<Date2021-03-17.18:27:30.932>user='https://github.com/serhiy-storchaka'
Currently building Python 3.9 on Windows produce many compiler warnings. 3.8 and master are clean.
Warnings in the _sre module caused by the bug in MSVC (complains about automatic conversion of "void **" to "const void *"). Fixed by backporting PR20508.
Warnings in many files related to using legacy C API (e.g. PyUnicode_AsUnicode) in Windows specific code.
..\Objects\exceptions.c(2313): warning C4098: 'MemoryError_dealloc': 'void' function returning a value
..\Objects\frameobject.c(400): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Activity
serhiy-storchaka commentedon Mar 15, 2021
Currently building Python 3.9 on Windows produce many compiler warnings. 3.8 and master are clean.
Warnings in the _sre module caused by the bug in MSVC (complains about automatic conversion of "void **" to "const void *"). Fixed by backporting PR20508.
Warnings in many files related to using legacy C API (e.g. PyUnicode_AsUnicode) in Windows specific code.
..\Objects\exceptions.c(2313): warning C4098: 'MemoryError_dealloc': 'void' function returning a value
..\Objects\frameobject.c(400): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
The last two may be hidden bugs.
serhiy-storchaka commentedon Mar 16, 2021
New changeset 651fc30 by Serhiy Storchaka in branch '3.9':
bpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873)
651fc30
serhiy-storchaka commentedon Mar 16, 2021
Ammar Askar, do you mind to backport PR 20628 to 3.9? It is the only warning left, and it seems there is a potential bug.
ammaraskar commentedon Mar 16, 2021
Sure thing, I'll work on the backport.
serhiy-storchaka commentedon Mar 17, 2021
New changeset db73376 by Ammar Askar in branch '3.9':
[3.9] bpo-43499: Restrict co_code to be under INT_MAX in codeobject (GH-20628) (GH-24896)
db73376
serhiy-storchaka commentedon Mar 17, 2021
Thank you Ammar.