mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:03:34 +08:00
Explicit void cast for unused return values
This commit is contained in:
@@ -89,7 +89,7 @@ protected:
|
||||
{
|
||||
if (size_ >= MaxSize)
|
||||
{
|
||||
validateRange(MaxSize); // Will throw, assert() or do nothing
|
||||
(void)validateRange(MaxSize); // Will throw, assert() or do nothing
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -435,7 +435,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl<T, ArrayMode, MaxSize_>
|
||||
}
|
||||
else if (this->size() == MaxSize)
|
||||
{
|
||||
std::copy(this->begin(), this->end(), it);
|
||||
(void)std::copy(this->begin(), this->end(), it);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user