Keep gcc -Wall happy.

This commit is contained in:
Guido van Rossum 1997-04-29 21:34:16 +00:00
parent 86bea46b3d
commit 1ed5e57684
4 changed files with 4 additions and 29 deletions

View File

@ -536,5 +536,5 @@ print
print 'void' print 'void'
print 'initgl()' print 'initgl()'
print '{' print '{'
print '\tPy_InitModule("gl", gl_methods);' print '\t(void) Py_InitModule("gl", gl_methods);'
print '}' print '}'

View File

@ -1495,29 +1495,6 @@ form_redraw_form(f, args)
return form_call(fl_redraw_form, f-> ob_form, args); return form_call(fl_redraw_form, f-> ob_form, args);
} }
static PyObject *
form_add_object(f, args)
formobject *f;
PyObject *args;
{
genericobject *g;
if (args == NULL || !is_genericobject(args)) {
PyErr_BadArgument();
return NULL;
}
g = (genericobject *)args;
if (findgeneric(g->ob_generic) != NULL) {
PyErr_SetString(PyExc_RuntimeError,
"add_object of object already in a form");
return NULL;
}
fl_add_object(f->ob_form, g->ob_generic);
knowgeneric(g);
Py_INCREF(Py_None);
return Py_None;
}
static PyObject * static PyObject *
form_set_form_position(f, args) form_set_form_position(f, args)
formobject *f; formobject *f;
@ -1915,8 +1892,6 @@ form_setattr(f, name, v)
char *name; char *name;
PyObject *v; PyObject *v;
{ {
int ret;
if (v == NULL) { if (v == NULL) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"can't delete form attributes"); "can't delete form attributes");

View File

@ -121,11 +121,11 @@ static void fpe_reset(Sigfunc *handler)
handle_sigfpes(_OFF, 0, handle_sigfpes(_OFF, 0,
(user_routine *)0, (user_routine *)0,
_TURN_OFF_HANDLER_ON_ERROR, _TURN_OFF_HANDLER_ON_ERROR,
(abort_routine*)0); NULL);
handle_sigfpes(_ON, _EN_OVERFL | _EN_DIVZERO | _EN_INVALID, handle_sigfpes(_ON, _EN_OVERFL | _EN_DIVZERO | _EN_INVALID,
(user_routine *)0, (user_routine *)0,
_ABORT_ON_ERROR, _ABORT_ON_ERROR,
(abort_routine*)0); NULL);
signal(SIGFPE, handler); signal(SIGFPE, handler);
/*-- SunOS and Solaris ----------------------------------------------------*/ /*-- SunOS and Solaris ----------------------------------------------------*/

View File

@ -777,7 +777,7 @@ strop_translate(self, args)
trans_table[i] = Py_CHARMASK(table[i]); trans_table[i] = Py_CHARMASK(table[i]);
for (i = 0; i < dellen; i++) for (i = 0; i < dellen; i++)
trans_table[Py_CHARMASK(del_table[i])] = -1; trans_table[(int) Py_CHARMASK(del_table[i])] = -1;
for (i = inlen; --i >= 0; ) { for (i = inlen; --i >= 0; ) {
c = Py_CHARMASK(*input++); c = Py_CHARMASK(*input++);