Clean up insignificant compiler warnings.

This commit is contained in:
adustman
2001-03-17 00:39:25 +00:00
parent c0548b10fc
commit e17cb128f7

View File

@ -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;