Skip to content

Commit

Permalink
Merge pull request opencv#11436 from seiko2plus:issue11433
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed May 3, 2018
2 parents 4ff6a1b + 788d6a7 commit 9fa01a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/OpenCVCompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if(CV_GCC OR CV_CLANG)
add_extra_compiler_option(-Wuninitialized)
add_extra_compiler_option(-Winit-self)
if(HAVE_CXX11)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
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)
Expand Down

0 comments on commit 9fa01a7

Please sign in to comment.