Explicit void cast for unused return values

This commit is contained in:
Pavel Kirienko
2014-04-19 17:45:03 +04:00
parent b2c021397d
commit f31d46ea6c
12 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ void bitarrayCopy(const unsigned char* src_org, int src_offset, int src_len, uns
if (byte_len)
{
std::memcpy(dst, src, byte_len);
(void)std::memcpy(dst, src, byte_len);
src += byte_len;
dst += byte_len;
}
+2 -2
View File
@@ -94,9 +94,9 @@ std::string BitStream::toString() const
}
out += ' ';
}
if (out.length())
if (out.length() > 0)
{
out.erase(out.length() - 1, 1);
(void)out.erase(out.length() - 1, 1);
}
return out;
}
+1 -1
View File
@@ -67,7 +67,7 @@ uint16_t IEEE754Converter::nativeNonIeeeToHalf(float value)
return hbits | 0x7C00U;
}
int exp;
std::frexp(value, &exp);
(void)std::frexp(value, &exp);
if (exp > 16)
{
return hbits | 0x7C00U;