fixed warnings

This commit is contained in:
Ilya Lavrenov
2014-06-09 15:54:10 +04:00
parent ed1c56e063
commit ff6f5d4d24
2 changed files with 3 additions and 1 deletions

View File

@@ -2212,8 +2212,8 @@ void cv::calcBackProject( InputArrayOfArrays images, const std::vector<int>& cha
const std::vector<float>& ranges,
double scale )
{
Size histSize = hist.size();
#ifdef HAVE_OPENCL
Size histSize = hist.size();
bool _1D = histSize.height == 1 || histSize.width == 1;
size_t histdims = _1D ? 1 : hist.dims();
#endif