mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Fix warnings when -Wextra-semi is enabled
Also, add argument -Wextra-semi if supported by the compiler.
This commit is contained in:
committed by
Teemu Ollakka
parent
6caf006214
commit
b5bddfe4db
@ -86,6 +86,10 @@ check_cxx_compiler_flag("-Wsuggest-override" HAVE_SUGGEST_OVERRIDE)
|
||||
if (HAVE_SUGGEST_OVERRIDE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
|
||||
endif()
|
||||
check_cxx_compiler_flag("-Wextra-semi" HAVE_EXTRA_SEMI)
|
||||
if (HAVE_EXTRA_SEMI)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra-semi")
|
||||
endif()
|
||||
|
||||
if (WSREP_LIB_STRICT_BUILD_FLAGS)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")
|
||||
|
Reference in New Issue
Block a user