]> granicus.if.org Git - python/commitdiff
Fixed end-of-loop code not reached warning when using SunPro C
authorNicholas Bastin <nick.bastin@gmail.com>
Thu, 17 Jun 2004 18:27:18 +0000 (18:27 +0000)
committerNicholas Bastin <nick.bastin@gmail.com>
Thu, 17 Jun 2004 18:27:18 +0000 (18:27 +0000)
Modules/_sre.c
Modules/collectionsmodule.c
Objects/listobject.c
Objects/setobject.c
Objects/unicodeobject.c

index 4be33d04ca8bc0dc20e657737e5201d4f3788450..6ee0bb82d3b07338c335a4c083aa655f34a3c10f 100644 (file)
  * other compatibility work.
  */
 
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
 #ifndef SRE_RECURSIVE
 
 static char copyright[] =
index 62b43aa90e45bbbd2e9763b7dfc134c845521286..4026ea50efde1bdd0427b403e65cc5387e74035f 100644 (file)
@@ -1,6 +1,10 @@
 #include "Python.h"
 #include "structmember.h"
 
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
 /* collections module implementation of a deque() datatype
    Written and maintained by Raymond D. Hettinger <python@rcn.com>
    Copyright (c) 2004 Python Software Foundation.
index ac8cd335a4e77307e0d04412b8ea9304fa8d1dc1..4385e4b01fd1c84c080a27b8f5cabc6822e82043 100644 (file)
@@ -2,6 +2,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>
 #else
index 289d5d3d9642431ce29f295b437e4bc545acd45a..e94f920400784602e928fe700cd9aaf247b99d72 100644 (file)
    All rights reserved.
 */
 
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
 static PyObject *
 set_update(PySetObject *so, PyObject *other)
 {
index 0858525584ba1444befd613f0d7cad3e867fe571..cf730e5626d83cc5fae6b96d83b521f15ac99e55 100644 (file)
@@ -41,6 +41,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "unicodeobject.h"
 #include "ucnhash.h"
 
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
 #ifdef MS_WINDOWS
 #include <windows.h>
 #endif