[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.212, 2.213 setobject.c, 1.27, 1.28 listobject.c, 2.205, 2.206

mondragon at users.sourceforge.net mondragon at users.sourceforge.net
Thu Jun 17 14:27:22 EDT 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17704/Objects

Modified Files:
	unicodeobject.c setobject.c listobject.c 
Log Message:
Fixed end-of-loop code not reached warning when using SunPro C


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.212
retrieving revision 2.213
diff -C2 -d -r2.212 -r2.213
*** unicodeobject.c	2 Jun 2004 16:49:16 -0000	2.212
--- unicodeobject.c	17 Jun 2004 18:27:17 -0000	2.213
***************
*** 42,45 ****
--- 42,49 ----
  #include "ucnhash.h"
  
+ #ifdef __SUNPRO_C
+ #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+ #endif
+ 
  #ifdef MS_WINDOWS
  #include <windows.h>

Index: setobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/setobject.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** setobject.c	14 Jun 2004 04:24:41 -0000	1.27
--- setobject.c	17 Jun 2004 18:27:18 -0000	1.28
***************
*** 11,14 ****
--- 11,18 ----
  */
  
+ #ifdef __SUNPRO_C
+ #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+ #endif
+ 
  static PyObject *
  set_update(PySetObject *so, PyObject *other)

Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.205
retrieving revision 2.206
diff -C2 -d -r2.205 -r2.206
*** listobject.c	5 May 2004 06:28:16 -0000	2.205
--- listobject.c	17 Jun 2004 18:27:18 -0000	2.206
***************
*** 3,6 ****
--- 3,10 ----
  #include "Python.h"
  
+ #ifdef __SUNPRO_C
+ #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+ #endif
+ 
  #ifdef STDC_HEADERS
  #include <stddef.h>




More information about the Python-checkins mailing list