Add SetValue for unsigned long for uint64_t
google::protobuf::uint64 is changing from unsigned long long to uint64_t, which is sometimes unsigned long long and sometimes unsigned long. Add a SetValue specialization for unsigned long. Mark both the unsigned long and unsigned long long specializations as sometimes unused, they will be unused if uint64_t is the other. Bug: 117607748 Test: m checkbuild Change-Id: I8bec0be6cd7e13354cf96a7e510fe2b920aec561
This commit is contained in:
@@ -48,6 +48,13 @@ void SetValue(const unsigned int& value,
|
|||||||
attribute->int64Value = value;
|
attribute->int64Value = value;
|
||||||
}
|
}
|
||||||
template<>
|
template<>
|
||||||
|
__attribute__((unused))
|
||||||
|
void SetValue(const unsigned long& value,
|
||||||
|
DrmMetricGroup::Attribute* attribute) {
|
||||||
|
attribute->int64Value = value;
|
||||||
|
}
|
||||||
|
template<>
|
||||||
|
__attribute__((unused))
|
||||||
void SetValue(const unsigned long long& value,
|
void SetValue(const unsigned long long& value,
|
||||||
DrmMetricGroup::Attribute* attribute) {
|
DrmMetricGroup::Attribute* attribute) {
|
||||||
attribute->int64Value = value;
|
attribute->int64Value = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user