mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Moved SunPro warning suppression into pyport.h and out of individual
modules and objects.
This commit is contained in:
parent
95b66f3276
commit
9ba301e589
7 changed files with 7 additions and 24 deletions
|
@ -579,4 +579,11 @@ typedef struct fd_set {
|
||||||
#define Py_GCC_ATTRIBUTE(x) __attribute__(x)
|
#define Py_GCC_ATTRIBUTE(x) __attribute__(x)
|
||||||
#endif
|
#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 */
|
#endif /* Py_PYPORT_H */
|
||||||
|
|
|
@ -34,10 +34,6 @@
|
||||||
* other compatibility work.
|
* other compatibility work.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __SUNPRO_C
|
|
||||||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SRE_RECURSIVE
|
#ifndef SRE_RECURSIVE
|
||||||
|
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include "structmember.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
|
/* collections module implementation of a deque() datatype
|
||||||
Written and maintained by Raymond D. Hettinger <python@rcn.com>
|
Written and maintained by Raymond D. Hettinger <python@rcn.com>
|
||||||
Copyright (c) 2004 Python Software Foundation.
|
Copyright (c) 2004 Python Software Foundation.
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
#ifdef __SUNPRO_C
|
|
||||||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef PyDictEntry dictentry;
|
typedef PyDictEntry dictentry;
|
||||||
typedef PyDictObject dictobject;
|
typedef PyDictObject dictobject;
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
#ifdef __SUNPRO_C
|
|
||||||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -10,10 +10,6 @@
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __SUNPRO_C
|
|
||||||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
set_update(PySetObject *so, PyObject *other)
|
set_update(PySetObject *so, PyObject *other)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,10 +41,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include "unicodeobject.h"
|
#include "unicodeobject.h"
|
||||||
#include "ucnhash.h"
|
#include "ucnhash.h"
|
||||||
|
|
||||||
#ifdef __SUNPRO_C
|
|
||||||
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue