From ce61d97f23783ea3b49da03729f5445c0a438475 Mon Sep 17 00:00:00 2001 From: thomas-bc Date: Fri, 1 Mar 2024 10:58:56 -0800 Subject: [PATCH] cast string_copy return value to void --- Fw/Types/ObjectName.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Fw/Types/ObjectName.cpp b/Fw/Types/ObjectName.cpp index 6fafbeefc8..a3c2171e5d 100644 --- a/Fw/Types/ObjectName.cpp +++ b/Fw/Types/ObjectName.cpp @@ -4,15 +4,15 @@ namespace Fw { ObjectName::ObjectName(const CHAR* src) : StringBase() { - Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } ObjectName::ObjectName(const StringBase& src) : StringBase() { - Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf)); } ObjectName::ObjectName(const ObjectName& src) : StringBase() { - Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf)); } ObjectName::ObjectName() : StringBase() { @@ -24,7 +24,7 @@ namespace Fw { return *this; } - Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf)); return *this; } @@ -33,12 +33,12 @@ namespace Fw { return *this; } - Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf)); return *this; } ObjectName& ObjectName::operator=(const CHAR* other) { - Fw::StringUtils::string_copy(this->m_buf, other, sizeof(this->m_buf)); + (void) Fw::StringUtils::string_copy(this->m_buf, other, sizeof(this->m_buf)); return *this; }