aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-01-14 13:21:13 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-14 15:55:38 +0100
commit310fb2efc36cb65cbbaf5bfc81595f301e98a8b7 (patch)
tree82293729dc748793d542cb29c840965a2efd20d9 /src
parente5ff71fbbfea0431826a82a6de24656d93651ec3 (diff)
downloadrneovim-310fb2efc36cb65cbbaf5bfc81595f301e98a8b7.tar.gz
rneovim-310fb2efc36cb65cbbaf5bfc81595f301e98a8b7.tar.bz2
rneovim-310fb2efc36cb65cbbaf5bfc81595f301e98a8b7.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 04072ffc3e..98a9301da6 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -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>