mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
9e3181af24
commit
57dafc70f6
@ -31,6 +31,22 @@ list(APPEND NEOVIM_SOURCES "${MSGPACK_DISPATCH}")
|
|||||||
|
|
||||||
file( GLOB OS_SOURCES os/*.c )
|
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(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
if(DEFINED ENV{SANITIZE})
|
if(DEFINED ENV{SANITIZE})
|
||||||
message(STATUS "Enabling the sanitizers")
|
message(STATUS "Enabling the sanitizers")
|
||||||
|
Loading…
Reference in New Issue
Block a user