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
df19f619
Commit
df19f619
authored
Jul 22, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark dead code explicitly to avoid clang warnings
parent
a7d948f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+5
-5
No files found.
Cython/Utility/Coroutine.c
View file @
df19f619
...
@@ -274,7 +274,7 @@ static CYTHON_INLINE PyObject *__Pyx_Coroutine_GetAsyncIter(PyObject *obj) {
...
@@ -274,7 +274,7 @@ static CYTHON_INLINE PyObject *__Pyx_Coroutine_GetAsyncIter(PyObject *obj) {
}
}
#else
#else
// avoid C warning about 'unused function'
// avoid C warning about 'unused function'
if
(
0
)
(
void
)
__Pyx_PyObject_CallMethod0
(
obj
,
PYIDENT
(
"__aiter__"
));
if
(
(
0
)
)
(
void
)
__Pyx_PyObject_CallMethod0
(
obj
,
PYIDENT
(
"__aiter__"
));
#endif
#endif
PyErr_Format
(
PyExc_TypeError
,
"'async for' requires an object with __aiter__ method, got %.100s"
,
PyErr_Format
(
PyExc_TypeError
,
"'async for' requires an object with __aiter__ method, got %.100s"
,
...
@@ -1641,7 +1641,7 @@ static int __Pyx_patch_abc(void) {
...
@@ -1641,7 +1641,7 @@ static int __Pyx_patch_abc(void) {
}
}
#else
#else
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
if
(
0
)
__Pyx_Coroutine_patch_module
(
NULL
,
NULL
);
if
(
(
0
)
)
__Pyx_Coroutine_patch_module
(
NULL
,
NULL
);
#endif
#endif
return
0
;
return
0
;
}
}
...
@@ -1733,7 +1733,7 @@ asyncio_done:
...
@@ -1733,7 +1733,7 @@ asyncio_done:
}
}
#else
#else
// avoid "unused" warning for __Pyx_patch_inspect()
// avoid "unused" warning for __Pyx_patch_inspect()
if
(
0
)
return
__Pyx_patch_inspect
(
module
);
if
(
(
0
)
)
return
__Pyx_patch_inspect
(
module
);
#endif
#endif
}
}
return
module
;
return
module
;
...
@@ -1745,7 +1745,7 @@ ignore:
...
@@ -1745,7 +1745,7 @@ ignore:
}
}
#else
#else
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
if
(
0
)
return
__Pyx_patch_inspect
(
__Pyx_Coroutine_patch_module
(
module
,
NULL
));
if
(
(
0
)
)
return
__Pyx_patch_inspect
(
__Pyx_Coroutine_patch_module
(
module
,
NULL
));
#endif
#endif
return
module
;
return
module
;
}
}
...
@@ -1780,7 +1780,7 @@ old_types.add(_cython_generator_type)
...
@@ -1780,7 +1780,7 @@ old_types.add(_cython_generator_type)
}
}
#else
#else
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
// avoid "unused" warning for __Pyx_Coroutine_patch_module()
if
(
0
)
return
__Pyx_Coroutine_patch_module
(
module
,
NULL
);
if
(
(
0
)
)
return
__Pyx_Coroutine_patch_module
(
module
,
NULL
);
#endif
#endif
return
module
;
return
module
;
}
}
...
...
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