This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ncoghlan
Date 2013-11-03.06:31:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383460283.32.0.964490197084.issue19482@psf.upfronthosting.co.za>
In-reply-to
Content
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
==========================
History
Date User Action Args
2013-11-03 06:31:23ncoghlansetrecipients: + ncoghlan
2013-11-03 06:31:23ncoghlansetmessageid: <1383460283.32.0.964490197084.issue19482@psf.upfronthosting.co.za>
2013-11-03 06:31:23ncoghlanlinkissue19482 messages
2013-11-03 06:31:22ncoghlancreate