diff --git a/src/mavsdk/plugins/ftp/ftp_impl.cpp b/src/mavsdk/plugins/ftp/ftp_impl.cpp index a90067dc54..af84acfee2 100644 --- a/src/mavsdk/plugins/ftp/ftp_impl.cpp +++ b/src/mavsdk/plugins/ftp/ftp_impl.cpp @@ -138,6 +138,7 @@ Ftp::Result FtpImpl::remove_file(const std::string& path) remove_file_async(path, [&](Ftp::Result result) { prom.set_value(result); }); auto ret = fut.get(); + (void)ret; return ret; }