mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 10:50:36 +08:00
Some functions with unused return value explicitly casted to (void)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user