From 59b9681af6aab9c577e19150765b724a29edc7ca Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Tue, 17 Dec 2024 21:51:35 +0800 Subject: [PATCH] Remove useless -Wno-long-long option According to GCC doc, -Wlong-long: Warn if long long type is used. This is enabled by either -Wpedantic or -Wtraditional in ISO C90 and C++98 modes. To inhibit the warning messages, use -Wno-long-long. OpenCV 4.x requires C++11. As result, this option is useless. Ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html --- cmake/OpenCVCompilerOptions.cmake | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index f0d6378bd7..a664e417c3 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -191,11 +191,6 @@ if(CV_GCC OR CV_CLANG OR CV_ICX) endif() add_extra_compiler_option(-fdiagnostics-show-option) - # The -Wno-long-long is required in 64bit systems when including system headers. - if(X86_64) - add_extra_compiler_option(-Wno-long-long) - endif() - # We need pthread's, unless we have explicitly disabled multi-thread execution. if(NOT OPENCV_DISABLE_THREAD_SUPPORT AND (