aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-02-19 20:01:24 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-02-19 20:41:44 +0100
commit8fdc84d0aaec63d57203bdef4b88047479ad4fc1 (patch)
tree3a94622fec3264d3ff0f591911880c8891d67966
parentcc15ba212c7992c3f3aae8b90962862572b21e83 (diff)
downloadrneovim-8fdc84d0aaec63d57203bdef4b88047479ad4fc1.tar.gz
rneovim-8fdc84d0aaec63d57203bdef4b88047479ad4fc1.tar.bz2
rneovim-8fdc84d0aaec63d57203bdef4b88047479ad4fc1.zip
build: disable conversion warnings for GCC
GCC seems chronically incapable of producing correct and relevant conversion warnings, and will therefore need to be silenced.
-rw-r--r--src/nvim/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index f393993894..54ad43e8f3 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -121,11 +121,9 @@ elseif(MINGW)
# Enable wmain
target_link_libraries(nvim_bin 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
+ target_compile_options(main_lib INTERFACE
+ -Wno-conversion
+ -fno-common
$<$<CONFIG:Release>:-Wno-unused-result>
$<$<CONFIG:RelWithDebInfo>:-Wno-unused-result>
$<$<CONFIG:MinSizeRel>:-Wno-unused-result>)