From 6bfb0dda858c385c5fdc1c52f5c7dccebe5945f3 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 5 Dec 2020 20:18:02 +0000 Subject: [PATCH] cmake: avoid duplication of -Winit-self flag --- cmake/OpenCVCompilerOptions.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 21201c12dd..8a3dcdbb63 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -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()