suppress misc warnings on fedora and macosx

This commit is contained in:
Jean-Francois Dockes
2019-04-28 15:39:15 +02:00
parent 3163f18fdd
commit 33e1847b26
11 changed files with 48 additions and 46 deletions
+1 -2
View File
@@ -134,8 +134,7 @@ bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh)
RclDHistoryEntry& hentry = m_history[m_history.size() - 1 - num];
if (sh) {
if (m_prevtime < 0 ||
abs (float(m_prevtime) - float(hentry.unixtime)) > 86400) {
if (m_prevtime < 0 || abs(m_prevtime - hentry.unixtime) > 86400) {
m_prevtime = hentry.unixtime;
time_t t = (time_t)(hentry.unixtime);
*sh = string(ctime(&t));