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
81df8a16
Commit
81df8a16
authored
Jul 19, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
parent
b40bc28c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
Modules/pcremodule.c
Modules/pcremodule.c
+1
-4
Modules/selectmodule.c
Modules/selectmodule.c
+3
-3
Modules/signalmodule.c
Modules/signalmodule.c
+1
-1
Modules/xreadlinesmodule.c
Modules/xreadlinesmodule.c
+1
-3
No files found.
Modules/pcremodule.c
View file @
81df8a16
...
...
@@ -258,7 +258,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
*
indexptr
=
end
;
return
Py_BuildValue
(
"c"
,
(
char
)
x
);
}
break
;
case
(
'E'
):
case
(
'G'
):
case
(
'L'
):
case
(
'Q'
):
case
(
'U'
):
case
(
'l'
):
case
(
'u'
):
...
...
@@ -331,7 +330,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
/* Otherwise, return a string containing the group name */
return
Py_BuildValue
(
"s#"
,
pattern
+
index
,
end
-
index
);
}
break
;
case
(
'0'
):
{
...
...
@@ -354,7 +352,7 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
*
indexptr
=
i
;
return
Py_BuildValue
(
"c"
,
(
unsigned
char
)
octval
);
}
break
;
case
(
'1'
):
case
(
'2'
):
case
(
'3'
):
case
(
'4'
):
case
(
'5'
):
case
(
'6'
):
case
(
'7'
):
case
(
'8'
):
case
(
'9'
):
...
...
@@ -410,7 +408,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
return
Py_BuildValue
(
"i"
,
pattern
[
index
]
-
'0'
);
}
}
break
;
default:
/* It's some unknown escape like \s, so return a string containing
...
...
Modules/selectmodule.c
View file @
81df8a16
...
...
@@ -332,7 +332,7 @@ staticforward PyTypeObject poll_Type;
static
int
update_ufd_array
(
pollObject
*
self
)
{
int
i
,
j
,
pos
;
int
i
,
pos
;
PyObject
*
key
,
*
value
;
self
->
ufd_len
=
PyDict_Size
(
self
->
dict
);
...
...
@@ -343,9 +343,9 @@ update_ufd_array(pollObject *self)
}
i
=
pos
=
0
;
while
(
(
j
=
PyDict_Next
(
self
->
dict
,
&
pos
,
&
key
,
&
value
)
))
{
while
(
PyDict_Next
(
self
->
dict
,
&
pos
,
&
key
,
&
value
))
{
self
->
ufds
[
i
].
fd
=
PyInt_AsLong
(
key
);
self
->
ufds
[
i
].
events
=
PyInt_AsLong
(
value
);
self
->
ufds
[
i
].
events
=
(
short
)
PyInt_AsLong
(
value
);
i
++
;
}
self
->
ufd_uptodate
=
1
;
...
...
Modules/signalmodule.c
View file @
81df8a16
...
...
@@ -156,7 +156,7 @@ signal_alarm(PyObject *self, PyObject *args)
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
t
))
return
NULL
;
/* alarm() returns the number of seconds remaining */
return
PyInt_FromLong
(
alarm
(
t
));
return
PyInt_FromLong
(
(
long
)
alarm
(
t
));
}
static
char
alarm_doc
[]
=
...
...
Modules/xreadlinesmodule.c
View file @
81df8a16
...
...
@@ -171,8 +171,6 @@ static PyMethodDef xreadlines_functions[] = {
DL_EXPORT
(
void
)
initxreadlines
(
void
)
{
PyObject
*
m
;
XReadlinesObject_Type
.
ob_type
=
&
PyType_Type
;
m
=
Py_InitModule
(
"xreadlines"
,
xreadlines_functions
);
Py_InitModule
(
"xreadlines"
,
xreadlines_functions
);
}
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