From 6d8366abe086538f33f9b8611e9759d7aae19676 Mon Sep 17 00:00:00 2001 From: buslov Date: Wed, 1 Nov 2017 23:13:59 +0300 Subject: [PATCH] Fix V591 warning from PVS-Studio Static Analyzer Non-void function should return a value. --- RandomFerns.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RandomFerns.cpp b/RandomFerns.cpp index 1a5a1a0..2dc36f3 100644 --- a/RandomFerns.cpp +++ b/RandomFerns.cpp @@ -121,6 +121,7 @@ bool RandomFerns::Apply_Ferns(cv::Mat img,cv::Rect bbox, cv::Mat& init_pose){ posetmp.release(); } init_pose = initpose2.clone(); + return false; } void RandomFerns::get_linepoint(cv::Mat img,cv::Mat init_pose,std::vector line_pids, cv::Mat& feats){