Fix compiler error at KsSession.cpp:457:30 on Raspberry Pi 3 Fix by changing the type of local variable 'pos' from uint64_t to size_t in KsSession::loadDualMarker(). KsSession.cpp:457:30: error: no matching function for call to ‘KsSession::_getMarker(const char [6], uint64_t*)’ if (_getMarker("markA", &pos)) { ^ In file included from KsSession.cpp:14:0: KsSession.hpp:97:7: note: candidate: bool KsSession::_getMarker(const char*, size_t*) bool _getMarker(const char* name, size_t *pos); ^~~~~~~~~~ KsSession.hpp:97:7: note: no known conversion for argument 2 from ‘uint64_t* {aka long long unsigned int*}’ to ‘size_t* {aka unsigned int*}’ Signed-off-by: Alan Mikhak <amikhak@xxxxxxxxxxxxxxxxxx> --- kernel-shark/src/KsSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-shark/src/KsSession.cpp b/kernel-shark/src/KsSession.cpp index 9d86776..a581bbf 100644 --- a/kernel-shark/src/KsSession.cpp +++ b/kernel-shark/src/KsSession.cpp @@ -450,7 +450,7 @@ void KsSession::saveDualMarker(KsDualMarkerSM *dm) */ void KsSession::loadDualMarker(KsDualMarkerSM *dm, KsTraceGraph *graphs) { - uint64_t pos; + size_t pos; dm->reset(); dm->setState(DualMarkerState::A); -- 2.17.1
![]() |