diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 15aa28c6ba..b8160fea4b 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -134,6 +134,8 @@ elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU") $<$:-Wno-unused-result> $<$:-Wno-unused-result> $<$:-Wno-unused-result>) + + target_link_options(nvim_bin PRIVATE -Wno-free-nonheap-object) # see #37250 elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") # On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang # 3.4.1 used there.