mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build: disable conversion warnings for GCC
GCC seems chronically incapable of producing correct and relevant conversion warnings, and will therefore need to be silenced.
This commit is contained in:
parent
cc15ba212c
commit
8fdc84d0aa
@ -121,11 +121,9 @@ elseif(MINGW)
|
|||||||
# Enable wmain
|
# Enable wmain
|
||||||
target_link_libraries(nvim_bin PRIVATE -municode)
|
target_link_libraries(nvim_bin PRIVATE -municode)
|
||||||
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 10)
|
target_compile_options(main_lib INTERFACE
|
||||||
target_compile_options(main_lib INTERFACE -Wno-conversion)
|
-Wno-conversion
|
||||||
endif()
|
-fno-common
|
||||||
|
|
||||||
target_compile_options(main_lib INTERFACE -fno-common
|
|
||||||
$<$<CONFIG:Release>:-Wno-unused-result>
|
$<$<CONFIG:Release>:-Wno-unused-result>
|
||||||
$<$<CONFIG:RelWithDebInfo>:-Wno-unused-result>
|
$<$<CONFIG:RelWithDebInfo>:-Wno-unused-result>
|
||||||
$<$<CONFIG:MinSizeRel>:-Wno-unused-result>)
|
$<$<CONFIG:MinSizeRel>:-Wno-unused-result>)
|
||||||
|
Loading…
Reference in New Issue
Block a user