From f0753ecf534d7a670bb5531734651285b0e3073b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 28 May 2018 00:04:34 +0200 Subject: fix build warnings --- proto-wine/ftnoir_protocol_wine.h | 2 ++ tracker-pt/module/point_extractor.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/proto-wine/ftnoir_protocol_wine.h b/proto-wine/ftnoir_protocol_wine.h index 04bcd349..20ed6045 100644 --- a/proto-wine/ftnoir_protocol_wine.h +++ b/proto-wine/ftnoir_protocol_wine.h @@ -15,6 +15,8 @@ class wine : TR, public IProtocol { + Q_OBJECT + public: wine(); ~wine() override; diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index e1047b44..dd7b6961 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -180,7 +180,7 @@ void PointExtractor::threshold_image(const cv::Mat& frame_gray, cv::Mat1b& outpu const f radius = (f) threshold_radius_value(frame_gray.cols, frame_gray.rows, threshold_slider_value); - auto ptr = (float const* const restrict_ptr) hist.ptr(0); + float const* const restrict_ptr ptr = (float*) hist.ptr(0); const unsigned area = uround(3 * M_PI * radius*radius); const unsigned sz = unsigned(hist.cols * hist.rows); unsigned thres = 32; -- cgit v1.2.3