[Python-checkins] CVS: python/dist/src/Python ceval.c,2.190,2.191 exceptions.c,1.16,1.17

Fred L. Drake python-dev@python.org
Fri, 18 Aug 2000 12:53:28 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv27584

Modified Files:
	ceval.c exceptions.c 
Log Message:

Remove a couple of warnings turned up by "gcc -Wall".


Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.190
retrieving revision 2.191
diff -C2 -r2.190 -r2.191
*** ceval.c	2000/08/17 22:55:00	2.190
--- ceval.c	2000/08/18 19:53:25	2.191
***************
*** 2857,2862 ****
  			Py_DECREF(list);
  		else {
! 			if (PyList_Append(list, name) < 0)
  				Py_DECREF(list);
  			Py_DECREF(name);
  		}
--- 2857,2863 ----
  			Py_DECREF(list);
  		else {
! 			if (PyList_Append(list, name) < 0) {
  				Py_DECREF(list);
+ 			}
  			Py_DECREF(name);
  		}

Index: exceptions.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/exceptions.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** exceptions.c	2000/08/18 05:05:37	1.16
--- exceptions.c	2000/08/18 19:53:25	1.17
***************
*** 794,798 ****
  	    if (buffer != NULL) {
  		if (have_filename && have_lineno)
! 		    sprintf(buffer, "%s (%s, line %d)",
  			    PyString_AS_STRING(str),
  			    my_basename(PyString_AS_STRING(filename)),
--- 794,798 ----
  	    if (buffer != NULL) {
  		if (have_filename && have_lineno)
! 		    sprintf(buffer, "%s (%s, line %ld)",
  			    PyString_AS_STRING(str),
  			    my_basename(PyString_AS_STRING(filename)),
***************
*** 803,807 ****
  			    my_basename(PyString_AS_STRING(filename)));
  		else if (have_lineno)
! 		    sprintf(buffer, "%s (line %d)",
  			    PyString_AS_STRING(str),
  			    PyInt_AsLong(lineno));
--- 803,807 ----
  			    my_basename(PyString_AS_STRING(filename)));
  		else if (have_lineno)
! 		    sprintf(buffer, "%s (line %ld)",
  			    PyString_AS_STRING(str),
  			    PyInt_AsLong(lineno));