Skip to content

Commit

Permalink
Merge pull request #2395 from mavlink/pr-v2.12-newer-compiler-fixes
Browse files Browse the repository at this point in the history
[v2.12] Fix includes and warnings with GCC14 and clang18
  • Loading branch information
JonasVautherin authored Sep 9, 2024
2 parents 71126ac + 0176507 commit de7c9c8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/logfile_download/logfile_download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <future>
#include <iostream>
#include <iomanip>
#include <string>
#include <cstring>
#include <thread>

Expand Down Expand Up @@ -42,7 +43,7 @@ int main(int argc, char** argv)
bool remove_log_files = false;

for (int i = 2; i < argc; ++i) {
if (argv[i] == "--rm") {
if (std::string(argv[i]) == "--rm") {
remove_log_files = true;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/mavsdk/core/call_every_handler.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "call_every_handler.h"

#include <algorithm>
#include <utility>

namespace mavsdk {
Expand Down
1 change: 1 addition & 0 deletions src/mavsdk/core/callback_list_impl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <algorithm>
#include <cstdint>
#include <functional>
#include <atomic>
Expand Down
1 change: 1 addition & 0 deletions src/mavsdk/core/mavlink_request_message_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "server_component_impl.h"
#include "mavlink_command_receiver.h"
#include "log.h"
#include <algorithm>

namespace mavsdk {

Expand Down
1 change: 1 addition & 0 deletions src/mavsdk/core/timeout_handler.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <algorithm>
#include "timeout_handler.h"

namespace mavsdk {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "telemetry_server_impl.h"
#include "unused.h"
#include <algorithm>
#include <array>

namespace mavsdk {
Expand Down

0 comments on commit de7c9c8

Please sign in to comment.