[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Possible problems with python (maybe specifically python 2.7
From: |
Philippe Michel |
Subject: |
[Bug-gnubg] Possible problems with python (maybe specifically python 2.7) |
Date: |
Fri, 13 May 2011 20:35:11 +0200 (CEST) |
User-agent: |
Alpine 2.00 (BSF 1167 2008-08-23) |
I don't know if this is important (I don't use python and usually compile
with --without-python), but I get the warnings below on gnubgmodule.c :
gnubgmodule.c:54:3: warning: array index of '1' indexes past the end of an
array (that contains 1 elements)
[-Warray-bounds]
PyTuple_SET_ITEM(b, 1, b1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gnubgmodule.c:24:
In file included from ./gnubgmodule.h:30:
In file included from /usr/local/include/python2.7/Python.h:99:
/usr/local/include/python2.7/tupleobject.h:54:37: note: instantiated from:
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] =
v)
^
/usr/local/include/python2.7/tupleobject.h:26:15: note: array 'ob_item'
declared here
PyObject *ob_item[1];
^
gnubgmodule.c:705:2: warning: array index of '4' indexes past the end of
an array (that contains 1 elements)
[-Warray-bounds]
PyTuple_SET_ITEM(p, NUM_CUBEFUL_OUTPUTS, PyInt_FromLong(cp));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gnubgmodule.c:24:
In file included from ./gnubgmodule.h:30:
In file included from /usr/local/include/python2.7/Python.h:99:
/usr/local/include/python2.7/tupleobject.h:54:37: note: instantiated from:
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] =
v)
^
/usr/local/include/python2.7/tupleobject.h:26:15: note: array 'ob_item'
declared here
PyObject *ob_item[1];
^
gnubgmodule.c:706:2: warning: array index of '5' indexes past the end of
an array (that contains 1 elements)
[-Warray-bounds]
PyTuple_SET_ITEM(p, NUM_CUBEFUL_OUTPUTS+1,
PyString_FromString(GetCubeRecommendation(cp)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gnubgmodule.c:24:
In file included from ./gnubgmodule.h:30:
In file included from /usr/local/include/python2.7/Python.h:99:
/usr/local/include/python2.7/tupleobject.h:54:37: note: instantiated from:
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] =
v)
^
/usr/local/include/python2.7/tupleobject.h:26:15: note: array 'ob_item'
declared here
PyObject *ob_item[1];
^
3 warnings generated.
- [Bug-gnubg] Possible problems with python (maybe specifically python 2.7),
Philippe Michel <=