summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorypostolov <ypostolov@luxoft.com>2020-01-09 20:07:14 +0200
committeryurii <ypostolov>2020-03-26 15:02:49 +0200
commitff053574e05e1bed827bfd4cca6b38eed8bec156 (patch)
treef95a3217a6d4f865aad84bf37c01c6c0490917b2
parentf008b6c6cf22df028455557f9c00451cdaf40939 (diff)
downloadsdl_core-ff053574e05e1bed827bfd4cca6b38eed8bec156.tar.gz
fix cppcheck issues in component protocol
-rw-r--r--src/components/protocol/src/rpc_type.cc1
-rw-r--r--src/components/protocol/src/service_type.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/protocol/src/rpc_type.cc b/src/components/protocol/src/rpc_type.cc
index bc1142ad5c..35a46b668e 100644
--- a/src/components/protocol/src/rpc_type.cc
+++ b/src/components/protocol/src/rpc_type.cc
@@ -62,6 +62,7 @@ RpcType RpcTypeFromByte(uint8_t byte) {
return supported_type ? type : kRpcTypeReserved;
}
+// cppcheck-suppress unusedFunction
uint8_t RpcTypeToByte(RpcType type) {
DCHECK(IsSupported(type));
return uint8_t(type);
diff --git a/src/components/protocol/src/service_type.cc b/src/components/protocol/src/service_type.cc
index 8ca57f338b..7ed3f9d848 100644
--- a/src/components/protocol/src/service_type.cc
+++ b/src/components/protocol/src/service_type.cc
@@ -63,6 +63,7 @@ ServiceType ServiceTypeFromByte(uint8_t byte) {
return valid_type ? type : kInvalidServiceType;
}
+// cppcheck-suppress unusedFunction
uint8_t ServiceTypeToByte(ServiceType type) {
DCHECK(IsValid(type));
return uint8_t(type);