Skip to content

Commit

Permalink
Fix/Build: Compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Jan 21, 2024
1 parent 5ad241c commit 5f2ad3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Src/LTOpenSky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -892,15 +892,9 @@ bool OpenSkyAcMasterFile::TryOpenDbFile (int year, int month)
unsigned long prevHexId = 0;
unsigned long lnNr = 0;
while (fAcDb.good()) {
std::ifstream::pos_type pos = fAcDb.tellg(); // current position _before_ reading the line
const std::ifstream::pos_type pos = fAcDb.tellg(); // current position _before_ reading the line
safeGetline(fAcDb, ln);

std::ifstream::pos_type posAfter = fAcDb.tellg(); // current position _after_ reading the line

char s[100];
snprintf(s, sizeof(s), "%lld - %lld", std::streamoff(pos), std::streamoff(posAfter));


// Here, we are only interested in the very first field, the hexId
unsigned long hexId = GetHexId(ln);
if (hexId) {
Expand Down
2 changes: 1 addition & 1 deletion Src/SettingsUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ void LTSettingsUI::buildInterface()
tmRTManTOfs = tmOfs;
std::time_t tCurr = // time as per current GUI entries
bRTZuluTime ? mktime_utc(tmRTManTOfs) : std::mktime(&tmRTManTOfs);
if (bNewZulu != bRTZuluTime) // just switch Local<->Zulu? -> convert the GUI entries
if (bool(bNewZulu) != bRTZuluTime) // just switch Local<->Zulu? -> convert the GUI entries
tmRTManTOfs = bNewZulu ? *std::gmtime(&tCurr) : *std::localtime(&tCurr);
ImGui::SameLine();
n = tmRTManTOfs.tm_mday - 1;
Expand Down

0 comments on commit 5f2ad3b

Please sign in to comment.