Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ce9e4c

Browse files
committed
Fixed end-of-loop code not reached warning when using SunPro C
1 parent 0083c92 commit 1ce9e4c

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

Modules/_sre.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
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+
3741
#ifndef SRE_RECURSIVE
3842

3943
static char copyright[] =

Modules/collectionsmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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+
48
/* collections module implementation of a deque() datatype
59
Written and maintained by Raymond D. Hettinger <[email protected]>
610
Copyright (c) 2004 Python Software Foundation.

Objects/listobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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+
59
#ifdef STDC_HEADERS
610
#include <stddef.h>
711
#else

Objects/setobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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+
1317
static PyObject *
1418
set_update(PySetObject *so, PyObject *other)
1519
{

Objects/unicodeobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ 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+
4448
#ifdef MS_WINDOWS
4549
#include <windows.h>
4650
#endif

0 commit comments

Comments
 (0)