Skip to content

build: suppress noisy warning#2217

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
tomoaki0705:suppressNoisyWarning
Aug 8, 2019
Merged

build: suppress noisy warning#2217
opencv-pushbot merged 1 commit intoopencv:3.4from
tomoaki0705:suppressNoisyWarning

Conversation

@tomoaki0705
Copy link
Copy Markdown
Contributor

@tomoaki0705 tomoaki0705 commented Aug 8, 2019

This pullrequest changes

  • removes noisy warning outside OpenCV
[ 40%] Building NVCC (Device) object modules/hfs/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_magnitude.cu.o
In file included from /usr/local/cuda/include/crt/common_functions.h:267:0,
                 from /usr/local/cuda/include/cuda_runtime.h:120,
                 from <command-line>:0:
/usr/local/cuda/include/crt/math_functions.h:8929:5: warning: "_GLIBCXX_HAVE_OBSOLETE_ISNAN" is not defined, evaluates to 0 [-Wundef]
 #if _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 48%] Building NVCC (Device) object modules/xfeatures2d/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_surf.cu.o
In file included from /usr/local/cuda/include/crt/common_functions.h:267:0,
                 from /usr/local/cuda/include/cuda_runtime.h:120,
                 from <command-line>:0:
/usr/local/cuda/include/crt/math_functions.h:8929:5: warning: "_GLIBCXX_HAVE_OBSOLETE_ISNAN" is not defined, evaluates to 0 [-Wundef]
 #if _GLIBCXX_HAVE_OBSOLETE_ISNAN && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
force_builders=Custom
buildworker:Custom=linux-1,linux-2,linux-4
docker_image:Custom=ubuntu-cuda:16.04


set(the_description "Hierarchical Feature Selection for Efficient Image Segmentation")
ocv_define_module(hfs opencv_core opencv_imgproc WRAP python) No newline at end of file
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this under if(HAVE_CUDA) condition here and below.

  * limit the affect by using HAVE_CUDA
@tomoaki0705 tomoaki0705 force-pushed the suppressNoisyWarning branch from 370a56b to 581c949 Compare August 8, 2019 12:45
Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@opencv-pushbot opencv-pushbot merged commit 581c949 into opencv:3.4 Aug 8, 2019
@tomoaki0705 tomoaki0705 deleted the suppressNoisyWarning branch August 8, 2019 20:29
@alalek alalek mentioned this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants