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
f2a73293
Commit
f2a73293
authored
Dec 21, 2009
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on GCC 3.3/Linux.
parent
0abe9c21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
extension_set.cc
src/google/protobuf/extension_set.cc
+3
-1
No files found.
src/google/protobuf/extension_set.cc
View file @
f2a73293
...
...
@@ -127,7 +127,9 @@ static bool CallNoArgValidityFunc(const void* arg, int number) {
// relied on these kinds of casts for a long time, despite being
// technically undefined. See:
// http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195
return
((
const
EnumValidityFunc
*
)
arg
)(
number
);
// Also note: Some compilers do not allow function pointers to be "const".
// Which makes sense, I suppose, because it's meaningless.
return
((
EnumValidityFunc
*
)
arg
)(
number
);
}
void
ExtensionSet
::
RegisterEnumExtension
(
const
MessageLite
*
containing_type
,
...
...
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