diff --git a/core/lib/CommandLine/getopt.h b/core/lib/CommandLine/getopt.h index b7d1a13a5..43919d840 100644 --- a/core/lib/CommandLine/getopt.h +++ b/core/lib/CommandLine/getopt.h @@ -142,7 +142,8 @@ struct option /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ -extern int getopt (int __argc, char *const *__argv, const char *__shortopts); +extern int getopt (int __argc, char *const *__argv, const char *__shortopts) + __THROW __nonnull ((2,3)); # endif /* __GNU_LIBRARY__ */ # ifndef __need_getopt diff --git a/core/lib/FileHandling/RINEX/RinexClockBase.cpp b/core/lib/FileHandling/RINEX/RinexClockBase.cpp index 0c44ac809..cd0d48e26 100644 --- a/core/lib/FileHandling/RINEX/RinexClockBase.cpp +++ b/core/lib/FileHandling/RINEX/RinexClockBase.cpp @@ -58,7 +58,7 @@ namespace gnsstk string RinexClockBase::writeTime(const CivilTime& dt) const { - if (dt == CommonTime::BEGINNING_OF_TIME) + if (dt == CivilTime(CommonTime::BEGINNING_OF_TIME)) { return std::string(26, ' '); } @@ -111,4 +111,3 @@ namespace gnsstk } // namespace - diff --git a/core/lib/Geomatics/SatPass.cpp b/core/lib/Geomatics/SatPass.cpp index 2bc86c276..7a7df652c 100644 --- a/core/lib/Geomatics/SatPass.cpp +++ b/core/lib/Geomatics/SatPass.cpp @@ -1194,7 +1194,7 @@ namespace gnsstk dt = N * dt; return; } - if (refTime == CommonTime::BEGINNING_OF_TIME) + if (refTime == Epoch(CommonTime::BEGINNING_OF_TIME)) { refTime = firstTime; } diff --git a/core/lib/Geomatics/SatPassUtilities.cpp b/core/lib/Geomatics/SatPassUtilities.cpp index b5cf588b2..242a30fbe 100644 --- a/core/lib/Geomatics/SatPassUtilities.cpp +++ b/core/lib/Geomatics/SatPassUtilities.cpp @@ -396,7 +396,7 @@ namespace gnsstk continue; } - if (prevtime != CommonTime::BEGINNING_OF_TIME) + if (prevtime != Epoch(CommonTime::BEGINNING_OF_TIME)) { // compute time since the last epoch dt = obsdata.time - prevtime;