cmake: avoid duplication of -Winit-self flag
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sat, 5 Dec 2020 20:18:02 +0000 (20:18 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sat, 5 Dec 2020 20:18:02 +0000 (20:18 +0000)
cmake/OpenCVCompilerOptions.cmake

index 21201c1..8a3dcdb 100644 (file)
@@ -120,7 +120,6 @@ if(CV_GCC OR CV_CLANG)
   add_extra_compiler_option(-Wshadow)
   add_extra_compiler_option(-Wsign-promo)
   add_extra_compiler_option(-Wuninitialized)
-  add_extra_compiler_option(-Winit-self)
   if(CV_GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
     add_extra_compiler_option(-Wno-psabi)
   endif()