From 5c4003ecaf15d37ffe2909d14bca5884e458c303 Mon Sep 17 00:00:00 2001 From: "Andrey Oleynik (GitHub)" Date: Thu, 7 Dec 2017 18:08:48 +0200 Subject: Fixes potential build warnings with macro --- .../transport_manager/src/iap2_emulation/iap2_transport_adapter.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.1