File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -579,4 +579,11 @@ typedef struct fd_set {
579579#define Py_GCC_ATTRIBUTE (x ) __attribute__(x)
580580#endif
581581
582+ /* Eliminate end-of-loop code not reached warnings from SunPro C
583+ * when using do{...}while(0) macros
584+ */
585+ #ifdef __SUNPRO_C
586+ #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
587+ #endif
588+
582589#endif /* Py_PYPORT_H */
Original file line number Diff line number Diff line change 3434 * other compatibility work.
3535 */
3636
37- #ifdef __SUNPRO_C
38- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
39- #endif
40-
4137#ifndef SRE_RECURSIVE
4238
4339static char copyright [] =
Original file line number Diff line number Diff line change 11#include "Python.h"
22#include "structmember.h"
33
4- #ifdef __SUNPRO_C
5- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
6- #endif
7-
84/* collections module implementation of a deque() datatype
95 Written and maintained by Raymond D. Hettinger <[email protected] > 106 Copyright (c) 2004 Python Software Foundation.
Original file line number Diff line number Diff line change 99
1010#include "Python.h"
1111
12- #ifdef __SUNPRO_C
13- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
14- #endif
15-
1612typedef PyDictEntry dictentry ;
1713typedef PyDictObject dictobject ;
1814
Original file line number Diff line number Diff line change 22
33#include "Python.h"
44
5- #ifdef __SUNPRO_C
6- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
7- #endif
8-
95#ifdef STDC_HEADERS
106#include <stddef.h>
117#else
Original file line number Diff line number Diff line change 1010 All rights reserved.
1111*/
1212
13- #ifdef __SUNPRO_C
14- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
15- #endif
16-
1713static PyObject *
1814set_update (PySetObject * so , PyObject * other )
1915{
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4141#include "unicodeobject.h"
4242#include "ucnhash.h"
4343
44- #ifdef __SUNPRO_C
45- #pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
46- #endif
47-
4844#ifdef MS_WINDOWS
4945#include <windows.h>
5046#endif
You can’t perform that action at this time.
0 commit comments