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
Boxiang Sun
cython
Commits
810955b7
Commit
810955b7
authored
Jul 13, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silence some clang warnings about dead code
parent
c824a382
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+1
-1
Cython/Utility/Profile.c
Cython/Utility/Profile.c
+2
-2
No files found.
Cython/Utility/Optimize.c
View file @
810955b7
...
...
@@ -229,7 +229,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *ke
PyObject
*
value
;
#if PY_VERSION_HEX >= 0x030400A0
// we keep the method call at the end to avoid "unused" C compiler warnings
if
(
1
)
{
if
(
(
1
)
)
{
value
=
PyDict_SetDefault
(
d
,
key
,
default_value
);
if
(
unlikely
(
!
value
))
return
NULL
;
Py_INCREF
(
value
);
...
...
Cython/Utility/Profile.c
View file @
810955b7
...
...
@@ -161,7 +161,7 @@
#define __Pyx_TraceDeclarations
#define __Pyx_TraceFrameInit(codeobj)
// mark error label as used to avoid compiler warnings
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if (
1
); else goto_error;
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if (
(1)
); else goto_error;
#define __Pyx_TraceException()
#define __Pyx_TraceReturn(result, nogil)
...
...
@@ -224,7 +224,7 @@
#endif
#else
// mark error label as used to avoid compiler warnings
#define __Pyx_TraceLine(lineno, nogil, goto_error) if (
1
); else goto_error;
#define __Pyx_TraceLine(lineno, nogil, goto_error) if (
(1)
); else goto_error;
#endif
/////////////// Profile ///////////////
...
...
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