diff options
author | Andrey Oleynik (GitHub) <aoleynik@luxoft.com> | 2017-12-07 18:08:48 +0200 |
---|---|---|
committer | Andriy Byzhynar <AByzhynar@luxoft.com> | 2018-01-18 12:03:51 +0200 |
commit | 5c4003ecaf15d37ffe2909d14bca5884e458c303 (patch) | |
tree | 6cf320ab30f3862591c6f1c2077902fa3c5d5529 | |
parent | 88790ab9e9016df4edf87b07677b8608c89a8cfd (diff) | |
download | sdl_core-5c4003ecaf15d37ffe2909d14bca5884e458c303.tar.gz |
Fixes potential build warnings with macro
-rw-r--r-- | src/components/transport_manager/src/iap2_emulation/iap2_transport_adapter.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/transport_manager/src/iap2_emulation/iap2_transport_adapter.cc b/src/components/transport_manager/src/iap2_emulation/iap2_transport_adapter.cc index b790add0c4..01ecb6e43c 100644 --- a/src/components/transport_manager/src/iap2_emulation/iap2_transport_adapter.cc +++ b/src/components/transport_manager/src/iap2_emulation/iap2_transport_adapter.cc @@ -102,6 +102,7 @@ void IAP2USBEmulationTransportAdapter::DeviceSwitched( const auto bytes = write(out_, switch_signal_ack.c_str(), switch_signal_ack.size()); + UNUSED(bytes); LOG4CXX_DEBUG(logger_, "Written bytes to out: " << bytes); LOG4CXX_DEBUG(logger_, "Switching signal ACK is sent"); @@ -131,6 +132,7 @@ void IAP2USBEmulationTransportAdapter::IAPSignalHandlerDelegate::threadMain() { const auto size = 32; while (run_flag_) { char buffer[size]; + // TODO: maybe need to check errno auto bytes = read(in_, &buffer, size); if (!bytes) { continue; |