fixed compilation under Ubuntu without CUDA

This commit is contained in:
Anatoly Baksheev committed 2012-10-08 22:44:11 +04:00
1 parent a310e2f027
commit 91a1a71de2
4 files changed
+17 -12

No files matched your search

+5 -4
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. */