mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fixed end-of-loop code not reached warning when using SunPro C
This commit is contained in:
parent
0083c920f2
commit
1ce9e4cfc1
5 changed files with 20 additions and 0 deletions
|
@ -34,6 +34,10 @@
|
||||||
* 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,6 +1,10 @@
|
||||||
#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.
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
#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,6 +10,10 @@
|
||||||
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,6 +41,10 @@ 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