Commit a2578018 authored by Alexander Barkov's avatar Alexander Barkov

Fixing compilation failure in storage/connect when -DMYSQL_MAINTAINER_MODE=ON:

disabling some CXX errors in storage/connect/CMakeLists.txt.
parent 48e7c19f
...@@ -72,6 +72,11 @@ IF(UNIX) ...@@ -72,6 +72,11 @@ IF(UNIX)
message(STATUS "CONNECT: GCC: Some warnings disabled") message(STATUS "CONNECT: GCC: Some warnings disabled")
endif(WITH_WARNINGS) endif(WITH_WARNINGS)
# Avoid compilation failure in maintainer mode
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual -Wno-error=type-limits")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
add_definitions( -DUNIX -DLINUX -DUBUNTU ) add_definitions( -DUNIX -DLINUX -DUBUNTU )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ")
......
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