fixed compilation under Ubuntu without CUDA

This commit is contained in:
Anatoly Baksheev
2012-10-08 22:20:53 +04:00
parent a310e2f027
commit 91a1a71de2
4 changed files with 17 additions and 12 deletions

View File

@@ -41,10 +41,12 @@
#include "precomp.hpp"
bool cv::gpu::tryConvertToGpuBorderType(int cpuBorderType, int& gpuBorderType)
{
#if !defined (HAVE_CUDA)
(void)cpuBorderType;
(void)gpuBorderType;
#else
switch (cpuBorderType)
{
case cv::BORDER_REFLECT101:
@@ -65,10 +67,9 @@ bool cv::gpu::tryConvertToGpuBorderType(int cpuBorderType, int& gpuBorderType)
default:
return false;
};
#endif
return false;
}
/* End of file. */