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
89519ab5
Commit
89519ab5
authored
9 years ago
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove warning for un-initialized enum return value.
parent
83ab0e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-0
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-0
No files found.
Cython/Compiler/Nodes.py
View file @
89519ab5
...
...
@@ -1528,6 +1528,8 @@ class CEnumDefItemNode(StatNode):
visibility
=
enum_entry
.
visibility
,
api
=
enum_entry
.
api
,
create_wrapper
=
enum_entry
.
create_wrapper
)
enum_entry
.
enum_values
.
append
(
entry
)
if
enum_entry
.
name
:
enum_entry
.
type
.
values
.
append
(
entry
.
cname
)
class
CTypeDefNode
(
StatNode
):
...
...
This diff is collapsed.
Click to expand it.
Cython/Compiler/PyrexTypes.py
View file @
89519ab5
...
...
@@ -3617,6 +3617,10 @@ class CEnumType(CType):
typecast
(
self
,
c_long_type
,
rhs
),
' %s'
%
code
.
error_goto_if
(
error_condition
or
self
.
error_condition
(
result_code
),
error_pos
))
@
property
def
default_value
(
self
):
if
self
.
values
:
return
self
.
values
[
0
]
class
CTupleType
(
CType
):
# components [PyrexType]
...
...
This diff is collapsed.
Click to expand it.
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