Code: Select all
..\..\vegastrike\src\gfx\nav\navpath.cpp(462) : warning C4101: 'i' : unreferenced local variable
..\..\vegastrike\src\gfx\nav\navpath.cpp(463) : warning C4101: 'system' : unreferenced local variable
Code: Select all
void NavPath::addNewPath()
{
NavigationSystem::CachedSystemIterator &systemIter = _Universe->AccessCockpit()->AccessNavSystem()->systemIter;
int i;
unsigned system;
//Inscribe new path
//*************************
list< unsigned >::iterator aux;
for (list< unsigned >::iterator iter = path.begin(); iter != path.end(); ++iter) {
if ( (*iter) != path.front() )
pathNeighbors[(*iter)].first = ( *--(aux = iter) );
if ( (*iter) != path.back() )
pathNeighbors[(*iter)].second = ( *++(aux = iter) );
systemIter[*iter].part_of_path = true;
systemIter[*iter].paths.insert( this );
}
}
Next warning... class/struct mixups fixed. There are several warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
that I don't know how to fix (never come across it so unsure why that wanring is coming up) and several more unreferenced locals. I am attached the build log to see if we can get the rest of these warnings worked out. I used /w3 for this run.