mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 03:04:12 +08:00
mdbx-cmake: add -Wno-lto-type-mismatch
to avoid false-positive warnings from GCC < 9.x
This commit is contained in:
parent
eb8bc865d1
commit
51d66494fd
@ -609,6 +609,9 @@ macro(setup_compile_flags)
|
|||||||
AND CMAKE_${CMAKE_PRIMARY_LANG}_COMPILER_VERSION VERSION_LESS 9)
|
AND CMAKE_${CMAKE_PRIMARY_LANG}_COMPILER_VERSION VERSION_LESS 9)
|
||||||
# GCC < 9.x generates false-positive warnings for optimization attributes
|
# GCC < 9.x generates false-positive warnings for optimization attributes
|
||||||
add_compile_flags("C;CXX" "-Wno-attributes")
|
add_compile_flags("C;CXX" "-Wno-attributes")
|
||||||
|
if(LTO_ENABLED)
|
||||||
|
add_compile_flags("C;CXX" "-Wno-lto-type-mismatch")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# In C a global variable without a storage specifier (static/extern) and
|
# In C a global variable without a storage specifier (static/extern) and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user