Commit 7f3742bd authored by Sergei Golubchik's avatar Sergei Golubchik

ColumnStore 23.x compilation/build fixes

* enable warnings for gcc 12.x and 13.x
* work around compilation warnings with gcc 12.x and 13.x
* fix differences with srpm builds on fedora (--as-needed)
parent 51b93a09
......@@ -9,19 +9,6 @@ IF(NOT PLUGIN_PERFSCHEMA STREQUAL NO)
add_definitions(-DHAVE_PSI_INTERFACE=)
ENDIF()
# new gcc is quite buggy re. spurious warnings. let's shut it up
IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "12.0.0")
# 12
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=restrict")
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=use-after-free")
# 13
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=maybe-uninitialized")
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=dangling-reference")
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=dangling-pointer")
ENDIF()
MY_CHECK_AND_SET_COMPILER_FLAG("-fno-strict-aliasing")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
# this does everything, gets the var from the correct scope, appends new
# values, sets in the correct scope
macro(APPEND_FOR_CPACK V)
......
Subproject commit 527886543046c6c1f320908ae69f30b2eb104b91
Subproject commit 61417b74c5d4086da3d9519b5aaf499b83b0127e
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