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 }}
Compilation warning on GCC version 7.4.0-1ubuntu1~18.04.1 #82050
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=<Date2019-08-19.10:15:34.891>created_at=<Date2019-08-15.20:30:41.686>labels= ['type-bug', '3.9', 'build']
title='Compilation warning on GCC version 7.4.0-1ubuntu1~18.04.1'updated_at=<Date2019-08-19.10:15:42.569>user='https://github.com/hansrajdas'
I am facing below compilation warning on compilation python source:
gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initial
izers -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.oObjects/obmalloc.c 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;
^~~
This is another thread having suggestions from Victor: #15293
Activity
hansrajdas commentedon Aug 15, 2019
I am facing below compilation warning on compilation python source:
gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initial
izers -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o Objects/obmalloc.c
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;
^~~
This is another thread having suggestions from Victor: #15293
vstinner commentedon Aug 19, 2019
Duplicate of bpo-37732.