Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
35d95291
Commit
35d95291
authored
Oct 15, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid some C compiler warnings about constant conditions.
parent
443369fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+2
-2
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+1
-1
No files found.
Cython/Utility/Coroutine.c
View file @
35d95291
...
...
@@ -607,7 +607,7 @@ void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
#define __Pyx_Coroutine_AlreadyRunningError(gen) (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static
void
__Pyx__Coroutine_AlreadyRunningError
(
CYTHON_UNUSED
__pyx_CoroutineObject
*
gen
)
{
const
char
*
msg
;
if
(
0
)
{
if
(
(
0
)
)
{
#ifdef __Pyx_Coroutine_USED
}
else
if
(
__Pyx_Coroutine_Check
((
PyObject
*
)
gen
))
{
msg
=
"coroutine already executing"
;
...
...
@@ -625,7 +625,7 @@ static void __Pyx__Coroutine_AlreadyRunningError(CYTHON_UNUSED __pyx_CoroutineOb
#define __Pyx_Coroutine_NotStartedError(gen) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL)
static
void
__Pyx__Coroutine_NotStartedError
(
CYTHON_UNUSED
PyObject
*
gen
)
{
const
char
*
msg
;
if
(
0
)
{
if
(
(
0
)
)
{
#ifdef __Pyx_Coroutine_USED
}
else
if
(
__Pyx_Coroutine_Check
(
gen
))
{
msg
=
"can't send non-None value to a just-started coroutine"
;
...
...
Cython/Utility/Optimize.c
View file @
35d95291
...
...
@@ -600,7 +600,7 @@ static double __Pyx__PyObject_AsDouble(PyObject* obj); /* proto */
static
double
__Pyx__PyObject_AsDouble
(
PyObject
*
obj
)
{
PyObject
*
float_value
;
#if !CYTHON_USE_TYPE_SLOTS
float_value
=
PyNumber_Float
(
obj
);
if
(
0
)
goto
bad
;
float_value
=
PyNumber_Float
(
obj
);
if
(
(
0
)
)
goto
bad
;
#else
PyNumberMethods
*
nb
=
Py_TYPE
(
obj
)
->
tp_as_number
;
if
(
likely
(
nb
)
&&
likely
(
nb
->
nb_float
))
{
...
...
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