mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Keep gcc -Wall happy.
This commit is contained in:
parent
bae95189b0
commit
0f4bbd2f34
2 changed files with 3 additions and 3 deletions
|
@ -82,9 +82,9 @@ PyCObject_Import(module_name, name)
|
||||||
PyObject *m, *c;
|
PyObject *m, *c;
|
||||||
void *r=NULL;
|
void *r=NULL;
|
||||||
|
|
||||||
if(m=PyImport_ImportModule(module_name))
|
if((m=PyImport_ImportModule(module_name)))
|
||||||
{
|
{
|
||||||
if(c=PyObject_GetAttrString(m,name))
|
if((c=PyObject_GetAttrString(m,name)))
|
||||||
{
|
{
|
||||||
r=PyCObject_AsVoidPtr(c);
|
r=PyCObject_AsVoidPtr(c);
|
||||||
Py_DECREF(c);
|
Py_DECREF(c);
|
||||||
|
|
|
@ -522,7 +522,7 @@ r_object(p)
|
||||||
object *varnames = NULL;
|
object *varnames = NULL;
|
||||||
object *filename = NULL;
|
object *filename = NULL;
|
||||||
object *name = NULL;
|
object *name = NULL;
|
||||||
int firstlineno;
|
int firstlineno = 0;
|
||||||
object *lnotab = NULL;
|
object *lnotab = NULL;
|
||||||
|
|
||||||
code = r_object(p);
|
code = r_object(p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue