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:
John Szakmeister 2014-04-20 19:56:46 -04:00 committed by Thiago de Arruda
parent 9e3181af24
commit 57dafc70f6

View File

@ -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")