summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-07-15 15:54:05 (GMT)
committerNicholas Bastin <nick.bastin@gmail.com>2004-07-15 15:54:05 (GMT)
commit9ba301e589b47af776294804240cc10e08e38498 (patch)
tree21d769d2fc87094a251a5e71956bf6da7914ec80 /Include
parent95b66f3276552c0d9002953bc9036ce2fb442c7b (diff)
downloadcpython-9ba301e589b47af776294804240cc10e08e38498.zip
cpython-9ba301e589b47af776294804240cc10e08e38498.tar.gz
cpython-9ba301e589b47af776294804240cc10e08e38498.tar.bz2
Moved SunPro warning suppression into pyport.h and out of individual
modules and objects.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 7477f07..0ee42f0 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -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 */