From 6b3de1b3eee9ad409475661a9b4d77fa34b81dce Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Thu, 15 May 2014 10:46:37 -0400 Subject: [PATCH] Windows complains that Distance::compare(mat,mat) didn't return a value --- openbr/openbr_plugin.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 04c8db6..3fd52a8 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -1401,6 +1401,7 @@ float Distance::compare(const Template &a, const Template &b) const float Distance::compare(const cv::Mat &, const cv::Mat &) const { qFatal("Logic error: %s did not implement a comparison function or was accessed at an unsupported level of abstraction.", metaObject()->className()); + return -std::numeric_limits::max(); } /* Distance - private methods */ -- libgit2 0.21.4