mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
build: disable conversion warnings for older GCC versions
The conversion warnings from GCC versions 10 and less give too many false positives and should be disabled.
This commit is contained in:
parent
e5ff71fbbf
commit
310fb2efc3
@ -117,6 +117,10 @@ elseif(MINGW)
|
||||
# Enable wmain
|
||||
target_link_libraries(nvim PRIVATE -municode)
|
||||
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 10)
|
||||
target_compile_options(main_lib INTERFACE -Wno-conversion)
|
||||
endif()
|
||||
|
||||
target_compile_options(main_lib INTERFACE -fno-common
|
||||
$<$<CONFIG:Release>:-Wno-unused-result>
|
||||
$<$<CONFIG:RelWithDebInfo>:-Wno-unused-result>
|
||||
|
Loading…
Reference in New Issue
Block a user