]> granicus.if.org Git - python/commitdiff
Moved SunPro warning suppression into pyport.h and out of individual
authorNicholas Bastin <nick.bastin@gmail.com>
Thu, 15 Jul 2004 15:54:05 +0000 (15:54 +0000)
committerNicholas Bastin <nick.bastin@gmail.com>
Thu, 15 Jul 2004 15:54:05 +0000 (15:54 +0000)
modules and objects.

Include/pyport.h
Modules/_sre.c
Modules/collectionsmodule.c
Objects/dictobject.c
Objects/listobject.c
Objects/setobject.c
Objects/unicodeobject.c

index 7477f07d260104bcffa10027dc84b946a78ee685..0ee42f0f4ed03e268eb927f8ec7a03ea3e67dafd 100644 (file)
@@ -579,4 +579,11 @@ typedef    struct fd_set {
 #define Py_GCC_ATTRIBUTE(x) __attribute__(x)
 #endif
 
+/* Eliminate end-of-loop code not reached warnings from SunPro C
+ * when using do{...}while(0) macros
+ */
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
 #endif /* Py_PYPORT_H */
index 6ee0bb82d3b07338c335a4c083aa655f34a3c10f..4be33d04ca8bc0dc20e657737e5201d4f3788450 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 367b4441e28fc3df1f169f5fe266c222282d812e..c72c7a6d06c5365f7a3ba9b10c6369f73e3dd985 100644 (file)
@@ -1,10 +1,6 @@
 #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 252db8ad91062795190667d951747f34533ab561..70f05e5def3721d54390990f46c3e4a0b4276345 100644 (file)
@@ -9,10 +9,6 @@
 
 #include "Python.h"
 
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
 typedef PyDictEntry dictentry;
 typedef PyDictObject dictobject;
 
index 4385e4b01fd1c84c080a27b8f5cabc6822e82043..ac8cd335a4e77307e0d04412b8ea9304fa8d1dc1 100644 (file)
@@ -2,10 +2,6 @@
 
 #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 e94f920400784602e928fe700cd9aaf247b99d72..289d5d3d9642431ce29f295b437e4bc545acd45a 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 00ccea8d4c5110257edaed4ace73ac22c704097e..6c73df48d3622390d2ddcdfef774cf98c4731d2d 100644 (file)
@@ -41,10 +41,6 @@ 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