Commit e9aeb106 authored by Mohcine Chraibi's avatar Mohcine Chraibi

Silence Warnings

parent 06c91a07
......@@ -174,16 +174,16 @@ void BrainStorage::ParseCogMap(BStorageKeyType ped)
xLandmark = xLandmark->NextSiblingElement("landmark"))
{
std::string id = xmltoa(xLandmark->Attribute("id"), "-1");
std::string caption = xmltoa(xLandmark->Attribute("caption"));
std::string landmark_id = xmltoa(xLandmark->Attribute("id"), "-1");
std::string landmark_caption = xmltoa(xLandmark->Attribute("caption"));
std::string type = xmltoa(xLandmark->Attribute("type"),"-1");
std::string roomId = xmltoa(xLandmark->Attribute("subroom1_id"),"-1");
std::string pxreal = xmltoa(xLandmark->Attribute("pxreal"),"-1");
std::string pyreal = xmltoa(xLandmark->Attribute("pyreal"),"-1");
std::string pxinmap = xmltoa(xLandmark->Attribute("px"),"-1");
std::string pyinmap = xmltoa(xLandmark->Attribute("py"),"-1");
std::string a = xmltoa(xLandmark->Attribute("a"),"-1");
std::string b = xmltoa(xLandmark->Attribute("b"),"-1");
std::string landmark_pxinmap = xmltoa(xLandmark->Attribute("px"),"-1");
std::string landmark_pyinmap = xmltoa(xLandmark->Attribute("py"),"-1");
std::string landmark_a = xmltoa(xLandmark->Attribute("a"),"-1");
std::string landmark_b = xmltoa(xLandmark->Attribute("b"),"-1");
ptrLandmark landmark (new Landmark(Point(std::stod(pxreal),std::stod(pyreal))));
......@@ -192,13 +192,13 @@ void BrainStorage::ParseCogMap(BStorageKeyType ped)
Log->Write("ERROR:\t Subroom Id is NaN!");
return;
}
landmark->SetId(std::stoi(id));
landmark->SetCaption(caption);
landmark->SetId(std::stoi(landmark_id));
landmark->SetCaption(landmark_caption);
landmark->SetType(type);
landmark->SetRealPos(Point(std::stod(pxreal),std::stod(pyreal)));
landmark->SetPosInMap(Point(std::stod(pxinmap),std::stod(pyinmap)));
landmark->SetA(std::stod(a));
landmark->SetB(std::stod(b));
landmark->SetPosInMap(Point(std::stod(landmark_pxinmap),std::stod(landmark_pyinmap)));
landmark->SetA(std::stod(landmark_a));
landmark->SetB(std::stod(landmark_b));
landmark->SetRoom(_building->GetSubRoomByUID(std::stoi(roomId)));
//processing the rooms node
......
#include "associations.h"
#include "connection.h"
#define UNUSED(x) [&x]{}() // c++11 silence warnings
Association::Association()
{
......@@ -12,6 +12,7 @@ Association::Association()
Association::Association(ptrLandmark landmark, ptrLandmark associated_landmark, bool connected)
{
UNUSED(connected);
_landmark=landmark;
_associatedLandmark=associated_landmark;
......
......@@ -42,6 +42,7 @@
#include <algorithm>
using namespace std;
#define UNUSED(x) [&x]{}() // c++11 silence warnings
/**
* Constructors & Destructors
......@@ -111,6 +112,7 @@ int GraphVertex::RemoveOutEdge(GraphEdge * edge)
int GraphVertex::RemoveOutEdge(const GraphVertex * dest)
{
UNUSED(dest);
//return out_edges.erase(dest);
return 1;
......
......@@ -6,6 +6,7 @@
#include <boost/geometry/geometry.hpp>
//#include <boost/foreach.hpp>
#define UNUSED(x) [&x]{}() // c++11 silence warnings
VisibleEnvironment::VisibleEnvironment()
{
......@@ -14,6 +15,7 @@ VisibleEnvironment::VisibleEnvironment()
VisibleEnvironment::VisibleEnvironment(const Building *b, const Pedestrian *ped)
{
_ped=ped;
typedef boost::geometry::model::polygon<Point> BoostPolygon;
std::vector<BoostPolygon> boostHoles;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment