该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
C:\pymqi-1.5.4>setup.py build -cmingw32 client
pymqi/pymqe.c: In function 'pymqe_MQCONNX':
pymqi/pymqe.c:248:5: warning: implicit declaration of function 'PyString_AsStrin
g' [-Wimplicit-function-declaration]
csp.CSPUserIdPtr = PyString_AsString(user);
^
pymqi/pymqe.c:248:22: warning: assignment makes pointer from integer without a c
ast [enabled by default]
csp.CSPUserIdPtr = PyString_AsString(user);
^
pymqi/pymqe.c:249:5: warning: implicit declaration of function 'PyString_Size' [
-Wimplicit-function-declaration]
csp.CSPUserIdLength = PyString_Size(user);
^
pymqi/pymqe.c:250:24: warning: assignment makes pointer from integer without a c
ast [enabled by default]
csp.CSPPasswordPtr = PyString_AsString(password);
^
pymqi/pymqe.c: In function 'pymqe_MQSET':
pymqi/pymqe.c:725:5: warning: implicit declaration of function 'PyString_Check'
[-Wimplicit-function-declaration]
if (!PyString_Check(attrArg)) {
^
pymqi/pymqe.c:729:5: warning: passing argument 2 of 'strncpy' makes pointer from
integer without a cast [enabled by default]
strncpy(charAttrs, PyString_AsString(attrArg), MAX_CHARATTR_LENGTH);
^
In file included from C:\Python34\include/Python.h:30:0,
from pymqi/pymqe.c:108:
c:\mingw\mingw\include\string.h:52:39: note: expected 'const char *' but argumen
t is of type 'int'
_CRTIMP char* __cdecl __MINGW_NOTHROW strncpy (char*, const char*, size_t);
^
pymqi/pymqe.c: In function 'pymqe_mqaiExecute':
pymqi/pymqe.c:1080:25: warning: assignment makes pointer from integer without a
cast [enabled by default]
filter_type = PyString_AsString(_pymqi_filter_type);
^
pymqi/pymqe.c:1158:19: warning: implicit declaration of function 'PyInt_Check' [
-Wimplicit-function-declaration]
if(!PyLong_Check(key) && !PyInt_Check(key)) {
^
pymqi/pymqe.c:1167:23: warning: implicit declaration of function 'PyInt_AsLong'
[-Wimplicit-function-declaration]
paramType = PyLong_Check(key) ? PyLong_AsLong(key) : PyIn
t_AsLong(key);
^
pymqi/pymqe.c:1181:31: warning: assignment makes pointer from integer without a
cast [enabled by default]
strArg = PyString_AsString(value);
^
pymqi/pymqe.c:1390:41: warning: implicit declaration of function 'PyString_FromS
tring' [-Wimplicit-function-declaration]
pyItemStrVal = PyString_FromString(item
StrVal);
^
pymqi/pymqe.c:1390:54: warning: assignment makes pointer from integer without a
cast [enabled by default]
pyItemStrVal = PyString_FromString(item
StrVal);
^
pymqi/pymqe.c:1453:41: warning: implicit declaration of function 'PyString_FromS
tringAndSize' [-Wimplicit-function-declaration]
pyItemStrVal = PyString_FromStringAndSi
ze((char *)itemByteStrVal, byteStrLength);
^
pymqi/pymqe.c:1453:54: warning: assignment makes pointer from integer without a
cast [enabled by default]
pyItemStrVal = PyString_FromStringAndSi
ze((char *)itemByteStrVal, byteStrLength);
^
pymqi/pymqe.c: In function 'initpymqe':
pymqi/pymqe.c:1541:3: warning: implicit declaration of function 'Py_InitModule4'
[-Wimplicit-function-declaration]
m = Py_InitModule4("pymqe", pymqe_methods,
^
pymqi/pymqe.c:1541:5: warning: assignment makes pointer from integer without a c
ast [enabled by default]
m = Py_InitModule4("pymqe", pymqe_methods,
^
pymqi/pymqe.c:1550:3: warning: passing argument 3 of 'PyDict_SetItemString' make
s pointer from integer without a cast [enabled by default]
PyDict_SetItemString(d, "__doc__", PyString_FromString(pymqe_doc));
^
In file included from C:\Python34\include/Python.h:87:0,
from pymqi/pymqe.c:108:
C:\Python34\include/dictobject.h:111:17: note: expected 'struct PyObject *' but
argument is of type 'int'
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *i
tem);
^
pymqi/pymqe.c:1551:3: warning: passing argument 3 of 'PyDict_SetItemString' make
s pointer from integer without a cast [enabled by default]
PyDict_SetItemString(d,"__version__", PyString_FromString(__version__));
^
In file included from C:\Python34\include/Python.h:87:0,
from pymqi/pymqe.c:108:
C:\Python34\include/dictobject.h:111:17: note: expected 'struct PyObject *' but
argument is of type 'int'
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *i
tem);
^
pymqi/pymqe.c:1560:7: warning: passing argument 2 of 'PyList_Append' makes point
er from integer without a cast [enabled by default]
PyList_Append(versions, PyString_FromString("5.0"));
^
In file included from C:\Python34\include/Python.h:86:0,
from pymqi/pymqe.c:108:
C:\Python34\include/listobject.h:57:17: note: expected 'struct PyObject *' but a
rgument is of type 'int'
PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
^
pymqi/pymqe.c:1563:7: warning: passing argument 2 of 'PyList_Append' makes point
er from integer without a cast [enabled by default]
PyList_Append(versions, PyString_FromString("5.1"));
^
In file included from C:\Python34\include/Python.h:86:0,
from pymqi/pymqe.c:108:
C:\Python34\include/listobject.h:57:17: note: expected 'struct PyObject *' but a
rgument is of type 'int'
PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
^