Make gcc -Wall happy
This commit is contained in:
parent
472c04f18f
commit
da9c2710c7
@ -532,20 +532,6 @@ complex_float(v)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static object *
|
|
||||||
complex_new(self, args)
|
|
||||||
object *self;
|
|
||||||
object *args;
|
|
||||||
{
|
|
||||||
Py_complex cval;
|
|
||||||
|
|
||||||
cval.imag = 0.;
|
|
||||||
if (!PyArg_ParseTuple(args, "d|d", &cval.real, &cval.imag))
|
|
||||||
return NULL;
|
|
||||||
return newcomplexobject(cval);
|
|
||||||
}
|
|
||||||
|
|
||||||
static object *
|
static object *
|
||||||
complex_conjugate(self)
|
complex_conjugate(self)
|
||||||
object *self;
|
object *self;
|
||||||
|
@ -154,7 +154,7 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
|
|||||||
if ((back != NULL && !is_frameobject(back)) ||
|
if ((back != NULL && !is_frameobject(back)) ||
|
||||||
code == NULL || !is_codeobject(code) ||
|
code == NULL || !is_codeobject(code) ||
|
||||||
globals == NULL || !is_dictobject(globals) ||
|
globals == NULL || !is_dictobject(globals) ||
|
||||||
locals != NULL && !is_dictobject(locals) ||
|
(locals != NULL && !is_dictobject(locals)) ||
|
||||||
nvalues < 0 || nblocks < 0) {
|
nvalues < 0 || nblocks < 0) {
|
||||||
err_badcall();
|
err_badcall();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -626,8 +626,8 @@ _Py_GetObjects(self, args)
|
|||||||
|
|
||||||
|
|
||||||
/* Hack to force loading of cobject.o */
|
/* Hack to force loading of cobject.o */
|
||||||
static PyTypeObject *cobject_hack = &PyCObject_Type;
|
PyTypeObject *_Py_cobject_hack = &PyCObject_Type;
|
||||||
|
|
||||||
|
|
||||||
/* Hack to force loading of abstract.o */
|
/* Hack to force loading of abstract.o */
|
||||||
static int (*abstract_hack) FPROTO((PyObject *)) = &PyObject_Length;
|
int (*_Py_abstract_hack) FPROTO((PyObject *)) = &PyObject_Length;
|
||||||
|
@ -98,7 +98,7 @@ range_print(r, fp, flags)
|
|||||||
if (j > 0 || i > 0)
|
if (j > 0 || i > 0)
|
||||||
fprintf(fp, ", ");
|
fprintf(fp, ", ");
|
||||||
|
|
||||||
fprintf(fp, "%d", r->start + j * r->step);
|
fprintf(fp, "%ld", r->start + j * r->step);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r->len == 1 && r->reps == 1)
|
if (r->len == 1 && r->reps == 1)
|
||||||
|
@ -669,17 +669,17 @@ formatstring(format, args)
|
|||||||
else {
|
else {
|
||||||
/* Got a format specifier */
|
/* Got a format specifier */
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
char *fmtstart = fmt++;
|
|
||||||
int width = -1;
|
int width = -1;
|
||||||
int prec = -1;
|
int prec = -1;
|
||||||
int size = 0;
|
int size = 0;
|
||||||
int c = '\0';
|
int c = '\0';
|
||||||
int fill;
|
int fill;
|
||||||
object *v;
|
object *v = NULL;
|
||||||
object *temp = NULL;
|
object *temp = NULL;
|
||||||
char *buf;
|
char *buf;
|
||||||
int sign;
|
int sign;
|
||||||
int len;
|
int len;
|
||||||
|
fmt++;
|
||||||
if (*fmt == '(') {
|
if (*fmt == '(') {
|
||||||
char *keystart;
|
char *keystart;
|
||||||
int keylen;
|
int keylen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user