summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-09 12:42:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-09 12:42:04 +0100
commit76caa11cee2887b70ee6df385a8040c3d0016cd7 (patch)
tree20556b916d883737d3da69343a181ece65cd833d
parentcdb8eecaba54a806348457c080539e70ce2e035e (diff)
tracker/kinect: pass msvc -W4
Let's not change the code unnecessarily.
-rw-r--r--tracker-kinect-face/kinect_face_tracker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tracker-kinect-face/kinect_face_tracker.cpp b/tracker-kinect-face/kinect_face_tracker.cpp
index 104ecda8..e826f8b0 100644
--- a/tracker-kinect-face/kinect_face_tracker.cpp
+++ b/tracker-kinect-face/kinect_face_tracker.cpp
@@ -377,6 +377,7 @@ void KinectFaceTracker::Update()
painter.setPen(QPen(Qt::red, 8));
painter.drawRect(iFaceBox.Left, iFaceBox.Top, iFaceBox.Right - iFaceBox.Left, iFaceBox.Bottom - iFaceBox.Top);
bool bEnd = painter.end();
+ (void)bEnd;
}
// Update our video preview
@@ -467,7 +468,8 @@ IBody* KinectFaceTracker::FindClosestBody(IBody** aBodies)
IBody* KinectFaceTracker::FindTrackedBodyById(IBody** aBodies, UINT64 aTrackingId)
{
float closestBodyDistance = std::numeric_limits<float>::max();
-
+ (void)closestBodyDistance;
+
for (int i = 0; i < BODY_COUNT; i++)
{
BOOLEAN tracked;