diff --git a/DroneShell/src/main.cpp b/DroneShell/src/main.cpp index 2bafbc7bc8..d678ce3d2f 100644 --- a/DroneShell/src/main.cpp +++ b/DroneShell/src/main.cpp @@ -1173,7 +1173,7 @@ class GetImageCommand : public DroneCommand { return; } - char* typeName = ""; + const char* typeName = ""; switch (imageType) { case msr::airlib::DroneControllerBase::ImageType::Scene: @@ -1185,6 +1185,10 @@ class GetImageCommand : public DroneCommand { case msr::airlib::DroneControllerBase::ImageType::Segmentation: typeName = "seg"; break; + case msr::airlib::DroneControllerBase::ImageType::None: + case msr::airlib::DroneControllerBase::ImageType::All: + default: + break; } std::string imageName = Utils::stringf("%s_%s%d.png", baseName.c_str(), typeName, image_index_++); diff --git a/MavLinkCom/src/serial_com/wifi.cpp b/MavLinkCom/src/serial_com/wifi.cpp index fcd903134e..ef43655d06 100644 --- a/MavLinkCom/src/serial_com/wifi.cpp +++ b/MavLinkCom/src/serial_com/wifi.cpp @@ -9,9 +9,12 @@ #include #include #include +#include "common_utils/Utils.hpp" int getWifiRssi(int socket, const char* ifaceName) { + unused(socket); + unused(ifaceName); return 0; // This has not been properly tested // struct iw_statistics stats;