mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 22:59:36 +00:00
Add the -Wconversion flag for some files.
This is to provide some infrastructure to help with issue #567 (Enable -Wconversion file by file).
This commit is contained in:
committed by
Thiago de Arruda
parent
9e3181af24
commit
57dafc70f6
@@ -31,6 +31,22 @@ list(APPEND NEOVIM_SOURCES "${MSGPACK_DISPATCH}")
|
||||
|
||||
file( GLOB OS_SOURCES os/*.c )
|
||||
|
||||
set(CONV_SRCS
|
||||
api.c
|
||||
arabic.c
|
||||
memory.c
|
||||
os/env.c
|
||||
os/event.c
|
||||
os/job.c
|
||||
os/mem.c
|
||||
os/signal.c
|
||||
os/users.c
|
||||
os/wstream.c
|
||||
)
|
||||
|
||||
set_source_files_properties(
|
||||
${CONV_SRCS} PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -Wconversion")
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
if(DEFINED ENV{SANITIZE})
|
||||
message(STATUS "Enabling the sanitizers")
|
||||
|
||||
Reference in New Issue
Block a user