From 731b5b206f498c1b9d17937bb2be156506273c5f Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Wed, 5 Apr 2017 08:30:16 +0900 Subject: [PATCH] suppress warnings from cuda --- modules/superres/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/superres/CMakeLists.txt b/modules/superres/CMakeLists.txt index 34c9297a1b..028274b8eb 100644 --- a/modules/superres/CMakeLists.txt +++ b/modules/superres/CMakeLists.txt @@ -3,6 +3,9 @@ if(IOS OR WINRT) endif() set(the_description "Super Resolution") +if(HAVE_CUDA) + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wshadow) +endif() ocv_define_module(superres opencv_imgproc opencv_video OPTIONAL opencv_videoio opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc opencv_cudaoptflow opencv_cudacodec WRAP python)