mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Fix warnings
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user