AP_Logger: use UNUSED_RESULT

Co-Authored-By: Francisco Ferreira <OXINARF@users.noreply.github.com>
This commit is contained in:
Andrew Tridgell 2019-07-16 09:36:04 +10:00
parent 8e58cb993d
commit 4418495c99

View File

@ -1074,7 +1074,7 @@ void AP_Logger_File::_io_timer(void)
t.modtime = utc_usec / (1000UL * 1000UL);
t.actime = t.modtime;
// we ignore return on utime() as there is nothing useful we can do
(void)utime(_write_filename, &t);
UNUSED_RESULT(utime(_write_filename, &t));
_need_rtc_update = false;
}
}