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
Possible uninitialized variable in Objects/obmalloc.c #81913
Objects/obmalloc.c: In function ‘_PyObject_Malloc’: Objects/obmalloc.c:1646:16: warning: ‘ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ptr;
^~~
We can investigate If its not a false alarm.
Activity
nanjekyejoannah commentedon Jul 31, 2019
Here is a compilation warning I got;
Objects/obmalloc.c: In function ‘_PyObject_Malloc’:
Objects/obmalloc.c:1646:16: warning: ‘ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ptr;
^~~
We can investigate If its not a false alarm.
vstinner commentedon Aug 19, 2019
bpo-37869 has been marked as a duplicate of this issue.
vstinner commentedon Aug 20, 2019
New changeset 18f8dcf by Victor Stinner in branch 'master':
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333)
18f8dcf
vstinner commentedon Aug 20, 2019
New changeset 30e5aff by Victor Stinner in branch '3.8':
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342)
30e5aff
vstinner commentedon Aug 20, 2019
New changeset c9a484a by Victor Stinner in branch '3.7':
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)
c9a484a
vstinner commentedon Aug 20, 2019
Thanks Joannah for the bug report. I fixed the warning on 3.7, 3.8 and master branches.