mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Clean up compiler warnings about
assignment discards qualifiers from pointer target type
This commit is contained in:
@ -1144,7 +1144,7 @@ _mysql_ConnectionObject_info(
|
|||||||
_mysql_ConnectionObject *self,
|
_mysql_ConnectionObject *self,
|
||||||
PyObject *args)
|
PyObject *args)
|
||||||
{
|
{
|
||||||
char *s;
|
const char *s;
|
||||||
if (!PyArg_NoArgs(args)) return NULL;
|
if (!PyArg_NoArgs(args)) return NULL;
|
||||||
check_connection(self);
|
check_connection(self);
|
||||||
s = mysql_info(&(self->connection));
|
s = mysql_info(&(self->connection));
|
||||||
@ -1372,7 +1372,7 @@ _mysql_ConnectionObject_stat(
|
|||||||
_mysql_ConnectionObject *self,
|
_mysql_ConnectionObject *self,
|
||||||
PyObject *args)
|
PyObject *args)
|
||||||
{
|
{
|
||||||
char *s;
|
const char *s;
|
||||||
if (!PyArg_NoArgs(args)) return NULL;
|
if (!PyArg_NoArgs(args)) return NULL;
|
||||||
check_connection(self);
|
check_connection(self);
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
|
Reference in New Issue
Block a user