Commit a2e754c1 authored by Alexander Alekhin's avatar Alexander Alekhin

build: eliminate warnings

parent 5339ef30
...@@ -103,7 +103,9 @@ if(CV_GCC OR CV_CLANG) ...@@ -103,7 +103,9 @@ if(CV_GCC OR CV_CLANG)
add_extra_compiler_option(-Wundef) add_extra_compiler_option(-Wundef)
add_extra_compiler_option(-Winit-self) add_extra_compiler_option(-Winit-self)
add_extra_compiler_option(-Wpointer-arith) add_extra_compiler_option(-Wpointer-arith)
add_extra_compiler_option(-Wshadow) 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(-Wsign-promo)
add_extra_compiler_option(-Wuninitialized) add_extra_compiler_option(-Wuninitialized)
add_extra_compiler_option(-Winit-self) add_extra_compiler_option(-Winit-self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment