diff --git a/lib/inflib/CMakeLists.txt b/lib/inflib/CMakeLists.txt index 390c81b4068..e48cf0809a7 100644 --- a/lib/inflib/CMakeLists.txt +++ b/lib/inflib/CMakeLists.txt @@ -12,7 +12,9 @@ else() file(GLOB_RECURSE SOURCE "infhost*.c") add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST) +if(NOT MSVC) add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes) +endif() add_library(inflibhost ${GLOBAL_FILES} ${SOURCE}) endif() diff --git a/lib/newinflib/CMakeLists.txt b/lib/newinflib/CMakeLists.txt index 0b1a0b5aa2b..0a2de69a1e5 100644 --- a/lib/newinflib/CMakeLists.txt +++ b/lib/newinflib/CMakeLists.txt @@ -12,7 +12,9 @@ else() file(GLOB_RECURSE SOURCE "infhost*.c") add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS) +if(NOT MSVC) add_definitions(-Wpointer-arith -Wwrite-strings) +endif() add_library(newinflibhost ${GLOBAL_FILES} ${SOURCE}) target_link_libraries(newinflibhost unicode)