Index: cmake/OpenCVCompilerOptions.cmake
--- cmake/OpenCVCompilerOptions.cmake.orig	2022-06-16 10:17:08.805380000 +0200
+++ cmake/OpenCVCompilerOptions.cmake	2022-06-16 10:17:39.002530000 +0200
@@ -112,41 +112,6 @@
 endif()
 
 if(CV_GCC OR CV_CLANG)
-  # High level of warnings.
-  add_extra_compiler_option(-W)
-  if (NOT MSVC)
-    # clang-cl interprets -Wall as MSVC would: -Weverything, which is more than
-    # we want.
-    add_extra_compiler_option(-Wall)
-  endif()
-  add_extra_compiler_option(-Wreturn-type)
-  add_extra_compiler_option(-Wnon-virtual-dtor)
-  add_extra_compiler_option(-Waddress)
-  add_extra_compiler_option(-Wsequence-point)
-  add_extra_compiler_option(-Wformat)
-  add_extra_compiler_option(-Wformat-security -Wformat)
-  add_extra_compiler_option(-Wmissing-declarations)
-  add_extra_compiler_option(-Wmissing-prototypes)
-  add_extra_compiler_option(-Wstrict-prototypes)
-  add_extra_compiler_option(-Wundef)
-  add_extra_compiler_option(-Winit-self)
-  add_extra_compiler_option(-Wpointer-arith)
-  if(NOT (CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0"))
-    add_extra_compiler_option(-Wshadow)  # old GCC emits warnings for variables + methods combination
-  endif()
-  add_extra_compiler_option(-Wsign-promo)
-  add_extra_compiler_option(-Wuninitialized)
-  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()
-  if(HAVE_CXX11)
-    if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT ENABLE_PRECOMPILED_HEADERS)
-      add_extra_compiler_option(-Wsuggest-override)
-    elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
-      add_extra_compiler_option(-Winconsistent-missing-override)
-    endif()
-  endif()
-
   if(ENABLE_NOISY_WARNINGS)
     add_extra_compiler_option(-Wcast-align)
     add_extra_compiler_option(-Wstrict-aliasing=2)
