Fix warnings

This commit is contained in:
Inada Naoki
2018-12-04 22:06:08 +09:00
parent 2f8eaabf0d
commit 20ee2e307b

View File

@ -367,7 +367,7 @@ _mysql_ConnectionObject_Initialize(
MYSQL *conn = NULL; MYSQL *conn = NULL;
PyObject *conv = NULL; PyObject *conv = NULL;
PyObject *ssl = NULL; PyObject *ssl = NULL;
char *key = NULL, *cert = NULL, *ca = NULL, const char *key = NULL, *cert = NULL, *ca = NULL,
*capath = NULL, *cipher = NULL; *capath = NULL, *cipher = NULL;
PyObject *ssl_keepref[5] = {NULL}; PyObject *ssl_keepref[5] = {NULL};
int n_ssl_keepref = 0; int n_ssl_keepref = 0;
@ -2335,7 +2335,7 @@ _mysql_ConnectionObject_getattro(
_mysql_ConnectionObject *self, _mysql_ConnectionObject *self,
PyObject *name) PyObject *name)
{ {
char *cname; const char *cname;
#ifdef IS_PY3K #ifdef IS_PY3K
cname = PyUnicode_AsUTF8(name); cname = PyUnicode_AsUTF8(name);
#else #else