From 4418495c99c6856c0710f7b9ccf64783b8f6ea93 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 16 Jul 2019 09:36:04 +1000 Subject: [PATCH] AP_Logger: use UNUSED_RESULT Co-Authored-By: Francisco Ferreira --- libraries/AP_Logger/AP_Logger_File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Logger/AP_Logger_File.cpp b/libraries/AP_Logger/AP_Logger_File.cpp index 3883105350..732d612586 100644 --- a/libraries/AP_Logger/AP_Logger_File.cpp +++ b/libraries/AP_Logger/AP_Logger_File.cpp @@ -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; } }