silence some warnings
This commit is contained in:
@ -160,7 +160,7 @@ static PyObject *pyField_getarray(pyField *self)
|
|||||||
#ifdef HAVE_NUMPY
|
#ifdef HAVE_NUMPY
|
||||||
int flags = NPY_CARRAY;
|
int flags = NPY_CARRAY;
|
||||||
char *data=self->addr.pfield;
|
char *data=self->addr.pfield;
|
||||||
npy_int dims[1] = {self->addr.no_elements};
|
npy_intp dims[1] = {self->addr.no_elements};
|
||||||
PyArray_Descr *desc;
|
PyArray_Descr *desc;
|
||||||
|
|
||||||
if(self->addr.field_type>DBF_MENU) {
|
if(self->addr.field_type>DBF_MENU) {
|
||||||
|
@ -272,15 +272,13 @@ static void cleanupPy(void *junk)
|
|||||||
*/
|
*/
|
||||||
static void setupPyInit(void)
|
static void setupPyInit(void)
|
||||||
{
|
{
|
||||||
PyThreadState *state;
|
|
||||||
|
|
||||||
PyImport_AppendInittab("_dbapi", init_dbapi);
|
PyImport_AppendInittab("_dbapi", init_dbapi);
|
||||||
PyImport_AppendInittab("_dbconstants", init_dbconstants);
|
PyImport_AppendInittab("_dbconstants", init_dbconstants);
|
||||||
|
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
|
|
||||||
state = PyEval_SaveThread();
|
(void)PyEval_SaveThread();
|
||||||
|
|
||||||
epicsAtExit(&cleanupPy, NULL);
|
epicsAtExit(&cleanupPy, NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user