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
3e0ec8de
Commit
3e0ec8de
authored
Nov 05, 2014
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70 from AustinSchuh/master
Fixed Unused Parameter warning in headers.
parents
11e6e9a3
ec71d5d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
17 deletions
+19
-17
cpp_field.h
src/google/protobuf/compiler/cpp/cpp_field.h
+6
-5
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/compiler/cpp/cpp_field.h
View file @
3e0ec8de
...
...
@@ -77,7 +77,7 @@ class FieldGenerator {
// Generate static default variable for this field. These are placed inside
// the message class. Most field types don't need this, so the default
// implementation is empty.
virtual
void
GenerateStaticMembers
(
io
::
Printer
*
printer
)
const
{}
virtual
void
GenerateStaticMembers
(
io
::
Printer
*
/*printer*/
)
const
{}
// Generate prototypes for all of the accessor functions related to this
// field. These are placed inside the class definition.
...
...
@@ -92,7 +92,7 @@ class FieldGenerator {
// placed somewhere in the .cc file.
// Most field types don't need this, so the default implementation is empty.
virtual
void
GenerateNonInlineAccessorDefinitions
(
io
::
Printer
*
printer
)
const
{}
io
::
Printer
*
/*printer*/
)
const
{}
// Generate lines of code (statements, not declarations) which clear the
// field. This is used to define the clear_$name$() method as well as
...
...
@@ -122,14 +122,15 @@ class FieldGenerator {
// Generate any code that needs to go in the class's SharedDtor() method,
// invoked by the destructor.
// Most field types don't need this, so the default implementation is empty.
virtual
void
GenerateDestructorCode
(
io
::
Printer
*
printer
)
const
{}
virtual
void
GenerateDestructorCode
(
io
::
Printer
*
/*printer*/
)
const
{}
// Generate code that allocates the fields's default instance.
virtual
void
GenerateDefaultInstanceAllocator
(
io
::
Printer
*
printer
)
const
{}
virtual
void
GenerateDefaultInstanceAllocator
(
io
::
Printer
*
/*printer*/
)
const
{}
// Generate code that should be run when ShutdownProtobufLibrary() is called,
// to delete all dynamically-allocated objects.
virtual
void
GenerateShutdownCode
(
io
::
Printer
*
printer
)
const
{}
virtual
void
GenerateShutdownCode
(
io
::
Printer
*
/*printer*/
)
const
{}
// Generate lines to decode this field, which will be placed inside the
// message's MergeFromCodedStream() method.
...
...
src/google/protobuf/descriptor.h
View file @
3e0ec8de
...
...
@@ -1280,11 +1280,11 @@ class LIBPROTOBUF_EXPORT DescriptorPool {
// Reports a warning in the FileDescriptorProto. Use this function if the
// problem occured should NOT interrupt building the FileDescriptorProto.
virtual
void
AddWarning
(
const
string
&
filename
,
// File name in which the error occurred.
const
string
&
element_name
,
// Full name of the erroneous element.
const
Message
*
descriptor
,
// Descriptor of the erroneous element.
ErrorLocation
location
,
// One of the location constants, above.
const
string
&
message
// Human-readable error message.
const
string
&
/*filename*/
,
// File name in which the error occurred.
const
string
&
/*element_name*/
,
// Full name of the erroneous element.
const
Message
*
/*descriptor*/
,
// Descriptor of the erroneous element.
ErrorLocation
/*location*/
,
// One of the location constants, above.
const
string
&
/*message*/
// Human-readable error message.
)
{}
private
:
...
...
src/google/protobuf/message.h
View file @
3e0ec8de
...
...
@@ -389,19 +389,19 @@ class LIBPROTOBUF_EXPORT Reflection {
// is set, false otherwise.
// TODO(jieluo) - make it pure virtual after updating all
// the subclasses.
virtual
bool
HasOneof
(
const
Message
&
message
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{
virtual
bool
HasOneof
(
const
Message
&
/*message*/
,
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{
return
false
;
}
virtual
void
ClearOneof
(
Message
*
message
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{}
virtual
void
ClearOneof
(
Message
*
/*message*/
,
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{}
// Returns the field descriptor if the oneof is set. NULL otherwise.
// TODO(jieluo) - make it pure virtual.
virtual
const
FieldDescriptor
*
GetOneofFieldDescriptor
(
const
Message
&
message
,
const
OneofDescriptor
*
oneof_descriptor
)
const
{
const
Message
&
/*message*/
,
const
OneofDescriptor
*
/*oneof_descriptor*/
)
const
{
return
NULL
;
}
...
...
src/google/protobuf/repeated_field.h
View file @
3e0ec8de
...
...
@@ -83,7 +83,8 @@ inline int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag) {
}
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
;
}
...
...
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