From 1c7944d4c6cd9bed81d6e322f9d6b8357a22217f Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 12 Feb 2020 23:43:38 +0100 Subject: [PATCH] cc_timer: fix -wformat for 64bit Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/51b887a3ad61d361a83db17ee402f4996772937e Author: Markus Volk Date: 2020-02-12 (Wed, 12 Feb 2020) --- src/gui/components/cc_timer.cpp | 2 +- src/gui/components/cc_timer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_timer.cpp b/src/gui/components/cc_timer.cpp index b9cc6a63c..a965dee44 100644 --- a/src/gui/components/cc_timer.cpp +++ b/src/gui/components/cc_timer.cpp @@ -127,7 +127,7 @@ void CComponentsTimer::stopThread() delete tm_thread; tm_thread = NULL; tn.clear(); - dprintf(DEBUG_DEBUG,"\033[32m[CComponentsTimer] thread [%p] [%s] [%s - %d] thread object terminated after %llu ticks\033[0m\n", tm_thread, tn.c_str(), __func__, __LINE__, tm_ticks); + dprintf(DEBUG_DEBUG,"\033[32m[CComponentsTimer] thread [%p] [%s] [%s - %d] thread object terminated after %" PRIu64 " ticks\033[0m\n", tm_thread, tn.c_str(), __func__, __LINE__, tm_ticks); } } diff --git a/src/gui/components/cc_timer.h b/src/gui/components/cc_timer.h index 0475ee318..82bfbb683 100644 --- a/src/gui/components/cc_timer.h +++ b/src/gui/components/cc_timer.h @@ -50,7 +50,7 @@ class CComponentsTimer : public sigc::trackable ///refresh interval in seconds int64_t tm_interval; - int64_t tm_ticks; + uint64_t tm_ticks; ///runs shared timer action provided inside OnTimer() signal static void threadCallback(CComponentsTimer *tm);