1
0
Fork 0

Fix some compiler warnings

This commit is contained in:
James Turner 2020-06-19 10:46:01 +01:00
parent 5a11e57d0a
commit 4e12748b8c
3 changed files with 0 additions and 3 deletions

View file

@ -460,7 +460,6 @@ private:
const int MAX_ZOOM = 12;
const int SHOW_DETAIL_ZOOM = 8;
const int SHOW_DETAIL2_ZOOM = 5;
const int CURSOR_PAN_STEP = 32;
MapWidget::MapWidget(int x, int y, int maxX, int maxY) :
puObject(x,y,maxX, maxY)

View file

@ -1134,7 +1134,6 @@ double RoutePath::distanceForVia(Via* via, int index) const
WayptVec enrouteWaypoints = via->expandToWaypoints(prevIt->wpt);
double dist = 0.0;
WayptVec::const_iterator it;
SGGeod legStart = prevIt->wpt->position();
for (auto wp : enrouteWaypoints) {
dist += SGGeodesy::distanceM(legStart, wp->position());

View file

@ -774,7 +774,6 @@ void FGTrafficManager::readTimeTableFromFile(SGPath infileName)
char buffer[256];
string buffString;
vector <string> tokens, depTime,arrTime;
vector <string>::iterator it;
sg_ifstream infile(infileName);
while (1) {