[New-bugs-announce] [issue19482] _pickle build warnings on Fedora 19

Nick Coghlan report at bugs.python.org
Sun Nov 3 07:31:23 CET 2013


New submission from Nick Coghlan:

Currently getting build warnings from _pickle.c:
==========================
building '_pickle' extension
gcc -pthread -fPIC -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -IInclude -I/usr/local/include -I/home/ncoghlan/devel/py3k/Include -I/home/ncoghlan/devel/py3k -c /home/ncoghlan/devel/py3k/Modules/_pickle.c -o build/temp.linux-x86_64-3.4/home/ncoghlan/devel/py3k/Modules/_pickle.o
/home/ncoghlan/devel/py3k/Modules/_pickle.c: In function ‘load_counted_long’:
/home/ncoghlan/devel/py3k/Modules/_pickle.c:4143:15: warning: ‘pdata’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         value = _PyLong_FromByteArray((unsigned char *)pdata, (size_t)size,
               ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c: In function ‘load’:
/home/ncoghlan/devel/py3k/Modules/_pickle.c:5330:25: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     i = (unsigned char)s[0];
                         ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c:5324:11: note: ‘s’ was declared here
     char *s;
           ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c:4995:30: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     idx = Py_CHARMASK(s[0]);
                              ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c:4986:11: note: ‘s’ was declared here
     char *s;
           ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c:4005:20: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     x |= (size_t) s[3] << 24;
                    ^
/home/ncoghlan/devel/py3k/Modules/_pickle.c:4858:11: note: ‘s’ was declared here
     char *s;
           ^
gcc -pthread -shared build/temp.linux-x86_64-3.4/home/ncoghlan/devel/py3k/Modules/_pickle.o -L/usr/local/lib -o build/lib.linux-x86_64-3.4/_pickle.cpython-34m.so
==========================

----------
components: Extension Modules
messages: 201997
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: _pickle build warnings on Fedora 19
type: compile error
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19482>
_______________________________________


More information about the New-bugs-announce mailing list