diff options
author | ypostolov <ypostolov@luxoft.com> | 2020-01-09 20:07:14 +0200 |
---|---|---|
committer | yurii <ypostolov> | 2020-03-26 15:02:49 +0200 |
commit | ff053574e05e1bed827bfd4cca6b38eed8bec156 (patch) | |
tree | f95a3217a6d4f865aad84bf37c01c6c0490917b2 | |
parent | f008b6c6cf22df028455557f9c00451cdaf40939 (diff) | |
download | sdl_core-ff053574e05e1bed827bfd4cca6b38eed8bec156.tar.gz |
fix cppcheck issues in component protocol
-rw-r--r-- | src/components/protocol/src/rpc_type.cc | 1 | ||||
-rw-r--r-- | src/components/protocol/src/service_type.cc | 1 |
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); |