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
918e3ee8
Commit
918e3ee8
authored
Oct 31, 2014
by
Austin Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Unused Parameter warning in headers.
parent
53d202f5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
descriptor.h
src/google/protobuf/descriptor.h
+5
-5
message.h
src/google/protobuf/message.h
+6
-6
repeated_field.h
src/google/protobuf/repeated_field.h
+2
-1
No files found.
src/google/protobuf/descriptor.h
View file @
918e3ee8
...
@@ -1280,11 +1280,11 @@ class LIBPROTOBUF_EXPORT DescriptorPool {
...
@@ -1280,11 +1280,11 @@ class LIBPROTOBUF_EXPORT DescriptorPool {
// Reports a warning in the FileDescriptorProto. Use this function if the
// Reports a warning in the FileDescriptorProto. Use this function if the
// problem occured should NOT interrupt building the FileDescriptorProto.
// problem occured should NOT interrupt building the FileDescriptorProto.
virtual
void
AddWarning
(
virtual
void
AddWarning
(
const
string
&
filename
,
// File name in which the error occurred.
const
string
&
/*filename*/
,
// File name in which the error occurred.
const
string
&
element_name
,
// Full name of the erroneous element.
const
string
&
/*element_name*/
,
// Full name of the erroneous element.
const
Message
*
descriptor
,
// Descriptor of the erroneous element.
const
Message
*
/*descriptor*/
,
// Descriptor of the erroneous element.
ErrorLocation
location
,
// One of the location constants, above.
ErrorLocation
/*location*/
,
// One of the location constants, above.
const
string
&
message
// Human-readable error message.
const
string
&
/*message*/
// Human-readable error message.
)
{}
)
{}
private
:
private
:
...
...
src/google/protobuf/message.h
View file @
918e3ee8
...
@@ -389,19 +389,19 @@ class LIBPROTOBUF_EXPORT Reflection {
...
@@ -389,19 +389,19 @@ class LIBPROTOBUF_EXPORT Reflection {
// is set, false otherwise.
// is set, false otherwise.
// TODO(jieluo) - make it pure virtual after updating all
// TODO(jieluo) - make it pure virtual after updating all
// the subclasses.
// the subclasses.
virtual
bool
HasOneof
(
const
Message
&
message
,
virtual
bool
HasOneof
(
const
Message
&
/*message*/
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{
return
false
;
return
false
;
}
}
virtual
void
ClearOneof
(
Message
*
message
,
virtual
void
ClearOneof
(
Message
*
/*message*/
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{}
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{}
// Returns the field descriptor if the oneof is set. NULL otherwise.
// Returns the field descriptor if the oneof is set. NULL otherwise.
// TODO(jieluo) - make it pure virtual.
// TODO(jieluo) - make it pure virtual.
virtual
const
FieldDescriptor
*
GetOneofFieldDescriptor
(
virtual
const
FieldDescriptor
*
GetOneofFieldDescriptor
(
const
Message
&
message
,
const
Message
&
/*message*/
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{
return
NULL
;
return
NULL
;
}
}
...
...
src/google/protobuf/repeated_field.h
View file @
918e3ee8
...
@@ -83,7 +83,8 @@ inline int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag) {
...
@@ -83,7 +83,8 @@ inline int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag) {
}
}
template
<
typename
Iter
>
template
<
typename
Iter
>
inline
int
CalculateReserve
(
Iter
begin
,
Iter
end
,
std
::
input_iterator_tag
)
{
inline
int
CalculateReserve
(
Iter
/*begin*/
,
Iter
/*end*/
,
std
::
input_iterator_tag
)
{
return
-
1
;
return
-
1
;
}
}
...
...
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