1
0
Fork 0

Fix compiler warnings

This commit is contained in:
Stuart Buchanan 2020-04-12 21:52:19 +01:00
parent b561cc8fac
commit 9b20c08db3
3 changed files with 55 additions and 55 deletions

View file

@ -66,7 +66,7 @@ private:
}; };
std::vector<ServerInfo> m_servers; std::vector<ServerInfo> m_servers;
int m_currentIndex = 0; unsigned int m_currentIndex = 0;
}; };
#endif // MPSERVERSMODEL_H #endif // MPSERVERSMODEL_H

View file

@ -754,7 +754,7 @@ void FGHIDDevice::SendFeatureReport(unsigned int reportId, const std::string& da
{ {
std::ostringstream byteString; std::ostringstream byteString;
for (int i=0; i<data.size(); ++i) { for (unsigned int i=0; i<data.size(); ++i) {
byteString << hexTable[data[i] >> 4]; byteString << hexTable[data[i] >> 4];
byteString << hexTable[data[i] & 0x0f]; byteString << hexTable[data[i] & 0x0f];
byteString << " "; byteString << " ";

View file

@ -2448,7 +2448,7 @@ PositionedIDVec NavDataCache::airwayWaypts(int id)
} // outer loop } // outer loop
SG_LOG(SG_AUTOPILOT, SG_WARN, "Airway:" << id); SG_LOG(SG_AUTOPILOT, SG_WARN, "Airway:" << id);
for (int i=0; i<result.size(); ++i) { for (unsigned int i=0; i<result.size(); ++i) {
if (result.at(i) == 0) { if (result.at(i) == 0) {
SG_LOG(SG_AUTOPILOT, SG_WARN, i << " <break>"); SG_LOG(SG_AUTOPILOT, SG_WARN, i << " <break>");
} else { } else {