Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c8dbc942
Commit
c8dbc942
authored
Jul 15, 2004
by
Nicholas Bastin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved SunPro warning suppression into pyport.h and out of individual
modules and objects.
parent
34495349
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
24 deletions
+7
-24
Include/pyport.h
Include/pyport.h
+7
-0
Modules/_sre.c
Modules/_sre.c
+0
-4
Modules/collectionsmodule.c
Modules/collectionsmodule.c
+0
-4
Objects/dictobject.c
Objects/dictobject.c
+0
-4
Objects/listobject.c
Objects/listobject.c
+0
-4
Objects/setobject.c
Objects/setobject.c
+0
-4
Objects/unicodeobject.c
Objects/unicodeobject.c
+0
-4
No files found.
Include/pyport.h
View file @
c8dbc942
...
...
@@ -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 */
Modules/_sre.c
View file @
c8dbc942
...
...
@@ -34,10 +34,6 @@
* other compatibility work.
*/
#ifdef __SUNPRO_C
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
#ifndef SRE_RECURSIVE
static
char
copyright
[]
=
...
...
Modules/collectionsmodule.c
View file @
c8dbc942
#include "Python.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
Written and maintained by Raymond D. Hettinger <python@rcn.com>
Copyright (c) 2004 Python Software Foundation.
...
...
Objects/dictobject.c
View file @
c8dbc942
...
...
@@ -9,10 +9,6 @@
#include "Python.h"
#ifdef __SUNPRO_C
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
typedef
PyDictEntry
dictentry
;
typedef
PyDictObject
dictobject
;
...
...
Objects/listobject.c
View file @
c8dbc942
...
...
@@ -2,10 +2,6 @@
#include "Python.h"
#ifdef __SUNPRO_C
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
#ifdef STDC_HEADERS
#include <stddef.h>
#else
...
...
Objects/setobject.c
View file @
c8dbc942
...
...
@@ -10,10 +10,6 @@
All rights reserved.
*/
#ifdef __SUNPRO_C
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
static
PyObject
*
set_update
(
PySetObject
*
so
,
PyObject
*
other
)
{
...
...
Objects/unicodeobject.c
View file @
c8dbc942
...
...
@@ -41,10 +41,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "unicodeobject.h"
#include "ucnhash.h"
#ifdef __SUNPRO_C
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
#ifdef MS_WINDOWS
#include <windows.h>
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment