Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
77646a45
Unverified
Commit
77646a45
authored
Oct 16, 2019
by
Joshua Haberman
Committed by
GitHub
Oct 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6758 from XrXr/ub
Remove unused argument to avoid UB
parents
9fdb2cf2
c1ba7c64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
defs.c
ruby/ext/google/protobuf_c/defs.c
+1
-1
protobuf.h
ruby/ext/google/protobuf_c/protobuf.h
+1
-1
No files found.
ruby/ext/google/protobuf_c/defs.c
View file @
77646a45
...
@@ -1232,7 +1232,7 @@ VALUE OneofDescriptor_name(VALUE _self) {
...
@@ -1232,7 +1232,7 @@ VALUE OneofDescriptor_name(VALUE _self) {
*
*
* Iterates through fields in this oneof, yielding to the block on each one.
* Iterates through fields in this oneof, yielding to the block on each one.
*/
*/
VALUE
OneofDescriptor_each
(
VALUE
_self
,
VALUE
field
)
{
VALUE
OneofDescriptor_each
(
VALUE
_self
)
{
DEFINE_SELF
(
OneofDescriptor
,
self
,
_self
);
DEFINE_SELF
(
OneofDescriptor
,
self
,
_self
);
upb_oneof_iter
it
;
upb_oneof_iter
it
;
for
(
upb_oneof_begin
(
&
it
,
self
->
oneofdef
);
for
(
upb_oneof_begin
(
&
it
,
self
->
oneofdef
);
...
...
ruby/ext/google/protobuf_c/protobuf.h
View file @
77646a45
...
@@ -259,7 +259,7 @@ OneofDescriptor* ruby_to_OneofDescriptor(VALUE value);
...
@@ -259,7 +259,7 @@ OneofDescriptor* ruby_to_OneofDescriptor(VALUE value);
VALUE
OneofDescriptor_initialize
(
VALUE
_self
,
VALUE
cookie
,
VALUE
OneofDescriptor_initialize
(
VALUE
_self
,
VALUE
cookie
,
VALUE
descriptor_pool
,
VALUE
ptr
);
VALUE
descriptor_pool
,
VALUE
ptr
);
VALUE
OneofDescriptor_name
(
VALUE
_self
);
VALUE
OneofDescriptor_name
(
VALUE
_self
);
VALUE
OneofDescriptor_each
(
VALUE
_self
,
VALUE
field
);
VALUE
OneofDescriptor_each
(
VALUE
_self
);
void
EnumDescriptor_mark
(
void
*
_self
);
void
EnumDescriptor_mark
(
void
*
_self
);
void
EnumDescriptor_free
(
void
*
_self
);
void
EnumDescriptor_free
(
void
*
_self
);
...
...
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