[New-bugs-announce] [issue25245] Compile warnings in _pickle.c
Serhiy Storchaka
report at bugs.python.org
Sun Sep 27 07:34:59 CEST 2015
New submission from Serhiy Storchaka:
Changeset 88d98f6c2d7d causes compile warnings in Modules/_pickle.c.
/home/serhiy/py/cpython/Modules/_pickle.c: In function ‘load_counted_long’:
/home/serhiy/py/cpython/Modules/_pickle.c:4752:15: warning: ‘pdata’ may be used uninitialized in this function [-Wmaybe-uninitialized]
value = _PyLong_FromByteArray((unsigned char *)pdata, (size_t)size,
^
/home/serhiy/py/cpython/Modules/_pickle.c: In function ‘load’:
/home/serhiy/py/cpython/Modules/_pickle.c:5534:24: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
idx = Py_CHARMASK(s[0]);
^
/home/serhiy/py/cpython/Modules/_pickle.c:5529:11: note: ‘s’ was declared here
char *s;
^
/home/serhiy/py/cpython/Modules/_pickle.c:4800:7: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x = _PyFloat_Unpack8((unsigned char *)s, 0);
^
/home/serhiy/py/cpython/Modules/_pickle.c:4795:11: note: ‘s’ was declared here
char *s;
^
----------
components: Extension Modules
messages: 251683
nosy: benjamin.peterson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Compile warnings in _pickle.c
type: compile error
versions: Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25245>
_______________________________________
More information about the New-bugs-announce
mailing list