Skip to content

Commit

Permalink
fix clang compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed Jun 4, 2017
1 parent 93fc100 commit 89b47d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DroneShell/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ class GetImageCommand : public DroneCommand {
return;
}

char* typeName = "";
const char* typeName = "";
switch (imageType)
{
case msr::airlib::DroneControllerBase::ImageType::Scene:
Expand All @@ -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_++);
Expand Down
3 changes: 3 additions & 0 deletions MavLinkCom/src/serial_com/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
#include <linux/wireless.h>
#include <stdlib.h>
#include <string.h>
#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;
Expand Down

0 comments on commit 89b47d4

Please sign in to comment.