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
d40a0db2
Commit
d40a0db2
authored
Jun 25, 2015
by
Jisi Liu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #540 from pherl/clean-warnings
fix compiler warnings.
parents
eda912ee
658e72d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
field_comparator.cc
src/google/protobuf/util/field_comparator.cc
+1
-0
type_info_test_helper.cc
src/google/protobuf/util/internal/type_info_test_helper.cc
+3
-0
message_differencer.h
src/google/protobuf/util/message_differencer.h
+2
-11
No files found.
src/google/protobuf/util/field_comparator.cc
View file @
d40a0db2
...
...
@@ -106,6 +106,7 @@ FieldComparator::ComparisonResult DefaultFieldComparator::Compare(
default
:
GOOGLE_LOG
(
FATAL
)
<<
"No comparison code for field "
<<
field
->
full_name
()
<<
" of CppType = "
<<
field
->
cpp_type
();
return
DIFFERENT
;
}
}
...
...
src/google/protobuf/util/internal/type_info_test_helper.cc
View file @
d40a0db2
...
...
@@ -97,6 +97,7 @@ ProtoStreamObjectSource* TypeInfoTestHelper::NewProtoSource(
}
}
GOOGLE_LOG
(
FATAL
)
<<
"Can not reach here."
;
return
NULL
;
}
ProtoStreamObjectWriter
*
TypeInfoTestHelper
::
NewProtoWriter
(
...
...
@@ -110,6 +111,7 @@ ProtoStreamObjectWriter* TypeInfoTestHelper::NewProtoWriter(
}
}
GOOGLE_LOG
(
FATAL
)
<<
"Can not reach here."
;
return
NULL
;
}
DefaultValueObjectWriter
*
TypeInfoTestHelper
::
NewDefaultValueWriter
(
...
...
@@ -121,6 +123,7 @@ DefaultValueObjectWriter* TypeInfoTestHelper::NewDefaultValueWriter(
}
}
GOOGLE_LOG
(
FATAL
)
<<
"Can not reach here."
;
return
NULL
;
}
}
// namespace testing
...
...
src/google/protobuf/util/message_differencer.h
View file @
d40a0db2
...
...
@@ -289,20 +289,11 @@ class LIBPROTOBUF_EXPORT MessageDifferencer {
MapKeyComparator
();
virtual
~
MapKeyComparator
();
// The first IsMatch without parent_fields is only for backward
// compatibility. New users should override the second one instead.
//
// Deprecated.
// TODO(ykzhu): remove this function.
virtual
bool
IsMatch
(
const
Message
&
message1
,
const
Message
&
message2
)
const
{
GOOGLE_CHECK
(
false
)
<<
"This function shouldn't get called"
;
return
false
;
}
virtual
bool
IsMatch
(
const
Message
&
message1
,
const
Message
&
message2
,
const
vector
<
SpecificField
>&
parent_fields
)
const
{
return
IsMatch
(
message1
,
message2
);
GOOGLE_CHECK
(
false
)
<<
"IsMatch() is not implemented."
;
return
false
;
}
private
:
...
...
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