You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

9 years ago
Index: cmake/OpenCVCompilerOptions.cmake
--- cmake/OpenCVCompilerOptions.cmake.orig 2016-12-23 13:54:44.000000000 +0100
+++ cmake/OpenCVCompilerOptions.cmake 2016-12-28 19:31:44.567157000 +0100
@@ -107,22 +107,6 @@
9 years ago
if(CMAKE_COMPILER_IS_GNUCXX)
# High level of warnings.
- add_extra_compiler_option(-W)
- add_extra_compiler_option(-Wall)
- add_extra_compiler_option(-Werror=return-type)
- add_extra_compiler_option(-Werror=non-virtual-dtor)
- add_extra_compiler_option(-Werror=address)
- add_extra_compiler_option(-Werror=sequence-point)
- add_extra_compiler_option(-Wformat)
- add_extra_compiler_option(-Werror=format-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)
- add_extra_compiler_option(-Wshadow)
- add_extra_compiler_option(-Wsign-promo)
if(ENABLE_NOISY_WARNINGS)
add_extra_compiler_option(-Wcast-align)
@@ -130,7 +114,6 @@
else()
add_extra_compiler_option(-Wno-narrowing)
add_extra_compiler_option(-Wno-delete-non-virtual-dtor)
- add_extra_compiler_option(-Wno-unnamed-type-template-args)
add_extra_compiler_option(-Wno-comment)
endif()
add_extra_compiler_option(-fdiagnostics-show-option)