mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Clean up insignificant compiler warnings.
This commit is contained in:
@ -1364,7 +1364,6 @@ _mysql_Constant_class(
|
|||||||
char *name)
|
char *name)
|
||||||
{
|
{
|
||||||
PyObject *d = NULL;
|
PyObject *d = NULL;
|
||||||
int i;
|
|
||||||
if (!(d = PyImport_ImportModule(type))) goto error;
|
if (!(d = PyImport_ImportModule(type))) goto error;
|
||||||
if (PyDict_SetItemString(mdict, name, d)) goto error;
|
if (PyDict_SetItemString(mdict, name, d)) goto error;
|
||||||
Py_DECREF(d);
|
Py_DECREF(d);
|
||||||
@ -1416,7 +1415,7 @@ For everything else, check the MySQL docs." ;
|
|||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_mysql(void)
|
init_mysql(void)
|
||||||
{
|
{
|
||||||
PyObject *c, *dict, *module;
|
PyObject *dict, *module;
|
||||||
module = Py_InitModule3("_mysql", _mysql_methods, _mysql___doc__);
|
module = Py_InitModule3("_mysql", _mysql_methods, _mysql___doc__);
|
||||||
#ifdef MS_WIN32
|
#ifdef MS_WIN32
|
||||||
_mysql_ConnectionObject_Type.ob_type = &PyType_Type;
|
_mysql_ConnectionObject_Type.ob_type = &PyType_Type;
|
||||||
|
Reference in New Issue
Block a user