Some functions with unused return value explicitly casted to (void)

This commit is contained in:
Pavel Kirienko
2014-04-01 00:13:43 +04:00
parent 5f8eb61a6f
commit 0b2c00307d
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -16,11 +16,11 @@ __attribute__ ((format(printf, 2, 3)))
static void UAVCAN_TRACE(const char* src, const char* fmt, ...)
{
va_list args;
std::printf("UAVCAN: %s: ", src);
(void)std::printf("UAVCAN: %s: ", src);
va_start(args, fmt);
std::vprintf(fmt, args);
(void)std::vprintf(fmt, args);
va_end(args);
std::puts("");
(void)std::puts("");
}
#else