diff options
author | Guido van Rossum <guido@python.org> | 1997-04-29 21:34:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-29 21:34:16 (GMT) |
commit | 1ed5e5768429f425f5bcb9f03bf04179dcca569f (patch) | |
tree | 74e39013dfe4bcd297fa3e0d80b7ae9ff356a53e | |
parent | 86bea46b3d16c4ed0453e17f241ddbdfade76c98 (diff) | |
download | cpython-1ed5e5768429f425f5bcb9f03bf04179dcca569f.zip cpython-1ed5e5768429f425f5bcb9f03bf04179dcca569f.tar.gz cpython-1ed5e5768429f425f5bcb9f03bf04179dcca569f.tar.bz2 |
Keep gcc -Wall happy.
-rw-r--r-- | Modules/cgen.py | 2 | ||||
-rw-r--r-- | Modules/flmodule.c | 25 | ||||
-rw-r--r-- | Modules/fpectlmodule.c | 4 | ||||
-rw-r--r-- | Modules/stropmodule.c | 2 |
4 files changed, 4 insertions, 29 deletions
diff --git a/Modules/cgen.py b/Modules/cgen.py index 2d972be..c032962 100644 --- a/Modules/cgen.py +++ b/Modules/cgen.py @@ -536,5 +536,5 @@ print print 'void' print 'initgl()' print '{' -print '\tPy_InitModule("gl", gl_methods);' +print '\t(void) Py_InitModule("gl", gl_methods);' print '}' diff --git a/Modules/flmodule.c b/Modules/flmodule.c index 1eec1f5..2e2dd5e 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1496,29 +1496,6 @@ form_redraw_form(f, 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 * form_set_form_position(f, args) formobject *f; PyObject *args; @@ -1915,8 +1892,6 @@ form_setattr(f, name, v) char *name; PyObject *v; { - int ret; - if (v == NULL) { PyErr_SetString(PyExc_TypeError, "can't delete form attributes"); diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c index 9fcc462..0b7e8d7 100644 --- a/Modules/fpectlmodule.c +++ b/Modules/fpectlmodule.c @@ -121,11 +121,11 @@ static void fpe_reset(Sigfunc *handler) handle_sigfpes(_OFF, 0, (user_routine *)0, _TURN_OFF_HANDLER_ON_ERROR, - (abort_routine*)0); + NULL); handle_sigfpes(_ON, _EN_OVERFL | _EN_DIVZERO | _EN_INVALID, (user_routine *)0, _ABORT_ON_ERROR, - (abort_routine*)0); + NULL); signal(SIGFPE, handler); /*-- SunOS and Solaris ----------------------------------------------------*/ diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 999a1c3..d52ac7f 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -777,7 +777,7 @@ strop_translate(self, args) trans_table[i] = Py_CHARMASK(table[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; ) { c = Py_CHARMASK(*input++); |