From e47a8c146f4939d925d9618738297680246ba768 Mon Sep 17 00:00:00 2001 From: gabryelreyes Date: Wed, 8 Nov 2023 21:26:37 +0100 Subject: [PATCH] Explicitly ignoring return values --- lib/APPConvoyLeader/App.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/APPConvoyLeader/App.cpp b/lib/APPConvoyLeader/App.cpp index 056f76ae..0fc3ff42 100644 --- a/lib/APPConvoyLeader/App.cpp +++ b/lib/APPConvoyLeader/App.cpp @@ -139,7 +139,8 @@ void App::reportOdometry() payload.yPos = yPos; payload.orientation = odometry.getOrientation(); - m_smpServer.sendData(m_serialMuxProtChannelIdOdometry, reinterpret_cast(&payload), sizeof(payload)); + /* Ignoring return value, as error handling is not available. */ + (void)m_smpServer.sendData(m_serialMuxProtChannelIdOdometry, reinterpret_cast(&payload), sizeof(payload)); } void App::reportSpeed() @@ -149,7 +150,8 @@ void App::reportSpeed() payload.left = speedometer.getLinearSpeedLeft(); payload.right = speedometer.getLinearSpeedRight(); - m_smpServer.sendData(m_serialMuxProtChannelIdSpeed, reinterpret_cast(&payload), sizeof(payload)); + /* Ignoring return value, as error handling is not available. */ + (void)m_smpServer.sendData(m_serialMuxProtChannelIdSpeed, reinterpret_cast(&payload), sizeof(payload)); } /******************************************************************************