mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-13459 Warnings, when compiling with gcc-7.x
mostly caused by -Wimplicit-fallthrough
This commit is contained in:
@ -10,6 +10,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
ENDIF()
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(" -Wdeprecated-declarations" HAVE_CXX_WDEPRECATED_DECLARATIONS)
|
||||
IF (HAVE_CXX_WDEPRECATED_DECLARATIONS)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
|
||||
ENDIF()
|
||||
|
||||
INCLUDE_DIRECTORIES(libhsclient)
|
||||
|
||||
# Handlersocket client library. We do not distribute it,
|
||||
|
Reference in New Issue
Block a user