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
403d216d
Commit
403d216d
authored
Oct 18, 2018
by
Thomas BARBIER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error: unused parameter 'arena' and 'default_value' [-Werror=unused-parameter]
parent
4e308267
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
inlined_string_field.h
src/google/protobuf/inlined_string_field.h
+19
-19
No files found.
src/google/protobuf/inlined_string_field.h
View file @
403d216d
...
...
@@ -67,27 +67,27 @@ class PROTOBUF_EXPORT InlinedStringField {
const
InlinedStringField
&
from
)
PROTOBUF_ALWAYS_INLINE
;
void
ClearToEmpty
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
ClearToEmptyNoArena
(
default_value
);
}
void
ClearNonDefaultToEmpty
()
PROTOBUF_ALWAYS_INLINE
{
ClearNonDefaultToEmptyNoArena
();
}
void
ClearToEmptyNoArena
(
const
::
std
::
string
*
default_value
)
void
ClearToEmptyNoArena
(
const
::
std
::
string
*
/*default_value*/
)
PROTOBUF_ALWAYS_INLINE
{
ClearNonDefaultToEmptyNoArena
();
}
void
ClearNonDefaultToEmptyNoArena
()
PROTOBUF_ALWAYS_INLINE
;
void
ClearToDefault
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
ClearToDefaultNoArena
(
default_value
);
}
void
ClearToDefaultNoArena
(
const
::
std
::
string
*
default_value
)
PROTOBUF_ALWAYS_INLINE
;
void
Destroy
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
DestroyNoArena
(
default_value
);
}
void
DestroyNoArena
(
const
::
std
::
string
*
default_value
)
PROTOBUF_ALWAYS_INLINE
;
...
...
@@ -96,16 +96,16 @@ class PROTOBUF_EXPORT InlinedStringField {
const
::
std
::
string
&
GetNoArena
()
const
PROTOBUF_ALWAYS_INLINE
;
::
std
::
string
*
Mutable
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
return
MutableNoArena
(
default_value
);
}
::
std
::
string
*
MutableNoArena
(
const
::
std
::
string
*
default_value
)
PROTOBUF_ALWAYS_INLINE
;
::
std
::
string
*
Release
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
{
::
std
::
string
*
Release
(
const
::
std
::
string
*
default_value
,
Arena
*
/*arena*/
)
{
return
ReleaseNoArena
(
default_value
);
}
::
std
::
string
*
ReleaseNonDefault
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
{
::
std
::
string
*
ReleaseNonDefault
(
const
::
std
::
string
*
default_value
,
Arena
*
/*arena*/
)
{
return
ReleaseNonDefaultNoArena
(
default_value
);
}
::
std
::
string
*
ReleaseNoArena
(
const
::
std
::
string
*
default_value
)
{
...
...
@@ -114,22 +114,22 @@ class PROTOBUF_EXPORT InlinedStringField {
::
std
::
string
*
ReleaseNonDefaultNoArena
(
const
::
std
::
string
*
default_value
);
void
Set
(
const
::
std
::
string
*
default_value
,
StringPiece
value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
SetNoArena
(
default_value
,
value
);
}
void
SetLite
(
const
::
std
::
string
*
default_value
,
StringPiece
value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
SetNoArena
(
default_value
,
value
);
}
void
SetNoArena
(
const
::
std
::
string
*
default_value
,
StringPiece
value
)
PROTOBUF_ALWAYS_INLINE
;
void
Set
(
const
::
std
::
string
*
default_value
,
const
::
std
::
string
&
value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
SetNoArena
(
default_value
,
value
);
}
void
SetLite
(
const
::
std
::
string
*
default_value
,
const
::
std
::
string
&
value
,
Arena
*
arena
)
PROTOBUF_ALWAYS_INLINE
{
Arena
*
/*arena*/
)
PROTOBUF_ALWAYS_INLINE
{
SetNoArena
(
default_value
,
value
);
}
void
SetNoArena
(
const
::
std
::
string
*
default_value
,
...
...
@@ -141,7 +141,7 @@ class PROTOBUF_EXPORT InlinedStringField {
#endif
void
SetAllocated
(
const
::
std
::
string
*
default_value
,
::
std
::
string
*
value
,
Arena
*
arena
)
{
Arena
*
/*arena*/
)
{
SetAllocatedNoArena
(
default_value
,
value
);
}
void
SetAllocatedNoArena
(
const
::
std
::
string
*
default_value
,
...
...
@@ -153,7 +153,7 @@ class PROTOBUF_EXPORT InlinedStringField {
void
UnsafeArenaSetAllocated
(
const
::
std
::
string
*
default_value
,
::
std
::
string
*
value
,
Arena
*
arena
);
bool
IsDefault
(
const
::
std
::
string
*
default_value
)
{
bool
IsDefault
(
const
::
std
::
string
*
/*default_value*/
)
{
return
false
;
}
private
:
...
...
@@ -166,7 +166,7 @@ inline InlinedStringField::InlinedStringField(const ::std::string& default_value
value_
(
default_value
)
{}
inline
void
InlinedStringField
::
AssignWithDefault
(
const
::
std
::
string
*
default_value
,
const
InlinedStringField
&
from
)
{
const
::
std
::
string
*
/*default_value*/
,
const
InlinedStringField
&
from
)
{
value_
=
from
.
value_
;
}
...
...
@@ -214,19 +214,19 @@ inline ::std::string* InlinedStringField::ReleaseNonDefaultNoArena(
return
released
;
}
inline
void
InlinedStringField
::
SetNoArena
(
const
::
std
::
string
*
default_value
,
inline
void
InlinedStringField
::
SetNoArena
(
const
::
std
::
string
*
/*default_value*/
,
StringPiece
value
)
{
value_
.
assign
(
value
.
data
(),
value
.
length
());
}
inline
void
InlinedStringField
::
SetNoArena
(
const
::
std
::
string
*
default_value
,
const
::
std
::
string
&
value
)
{
const
::
std
::
string
*
/*default_value*/
,
const
::
std
::
string
&
value
)
{
value_
.
assign
(
value
);
}
#if LANG_CXX11
inline
void
InlinedStringField
::
SetNoArena
(
const
::
std
::
string
*
default_value
,
::
std
::
string
&&
value
)
{
const
::
std
::
string
*
/*default_value*/
,
::
std
::
string
&&
value
)
{
value_
.
assign
(
std
::
move
(
value
));
}
#endif
...
...
@@ -245,12 +245,12 @@ inline void InlinedStringField::UnsafeSetDefault(
}
inline
::
std
::
string
*
InlinedStringField
::
UnsafeArenaRelease
(
const
::
std
::
string
*
default_value
,
Arena
*
arena
)
{
const
::
std
::
string
*
default_value
,
Arena
*
/*arena*/
)
{
return
ReleaseNoArena
(
default_value
);
}
inline
void
InlinedStringField
::
UnsafeArenaSetAllocated
(
const
::
std
::
string
*
default_value
,
::
std
::
string
*
value
,
Arena
*
arena
)
{
const
::
std
::
string
*
default_value
,
::
std
::
string
*
value
,
Arena
*
/*arena*/
)
{
if
(
value
==
NULL
)
{
value_
.
assign
(
*
default_value
);
}
else
{
...
...
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