[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.

This commit is contained in:
Amine Khaldi 2017-12-03 23:30:10 +01:00
parent 6fe9441d32
commit 00124d1b1a
29 changed files with 113 additions and 82 deletions

View file

@ -42,12 +42,20 @@ list(APPEND SOURCE
udffs.h)
add_library(udfs SHARED ${SOURCE} udffs.rc)
if(MSVC)
# FIXME: Make sure we marked all what needs to be marked with stdcall before removing this.
add_target_compile_flags(udfs "/Gz")
if(USE_CLANG_CL)
add_target_compile_flags(udfs "-Wno-extern-c-compat -Wno-unused-value")
add_target_compile_flags(udfs "-Wno-tautological-constant-out-of-range-compare")
add_target_compile_flags(udfs "-Wno-tautological-unsigned-zero-compare -Wno-self-assign")
add_target_compile_flags(udfs "-Wno-sometimes-uninitialized -Wno-parentheses-equality")
endif()
else()
add_target_compile_flags(udfs "-Wno-unused-but-set-variable")
endif()
set_module_type(udfs kernelmodedriver)
target_link_libraries(udfs ${PSEH_LIB})
add_importlibs(udfs ntoskrnl hal)