mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
build: unreachable code after CV_Error()
This commit is contained in:
@@ -138,7 +138,6 @@ MatAllocator* cv::cuda::HostMem::getAllocator(AllocType alloc_type)
|
||||
#ifndef HAVE_CUDA
|
||||
(void) alloc_type;
|
||||
throw_no_cuda();
|
||||
return NULL;
|
||||
#else
|
||||
static std::map<unsigned int, Ptr<MatAllocator> > allocators;
|
||||
|
||||
@@ -302,7 +301,6 @@ GpuMat cv::cuda::HostMem::createGpuMatHeader() const
|
||||
{
|
||||
#ifndef HAVE_CUDA
|
||||
throw_no_cuda();
|
||||
return GpuMat();
|
||||
#else
|
||||
CV_Assert( alloc_type == SHARED );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user