fix "unreachable code" warning
This commit is contained in:
parent
1a8d7f9587
commit
bf42b9603b
@ -960,8 +960,7 @@ TEST(UMat, setOpenCL)
|
|||||||
{
|
{
|
||||||
#ifndef HAVE_OPENCL
|
#ifndef HAVE_OPENCL
|
||||||
return; // test skipped
|
return; // test skipped
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
// save the current state
|
// save the current state
|
||||||
bool useOCL = cv::ocl::useOpenCL();
|
bool useOCL = cv::ocl::useOpenCL();
|
||||||
|
|
||||||
@ -999,6 +998,7 @@ TEST(UMat, setOpenCL)
|
|||||||
|
|
||||||
// reset state to the previous one
|
// reset state to the previous one
|
||||||
cv::ocl::setUseOpenCL(useOCL);
|
cv::ocl::setUseOpenCL(useOCL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UMat, ReadBufferRect)
|
TEST(UMat, ReadBufferRect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user