mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:05:41 +00:00
[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.
This commit is contained in:
parent
6fe9441d32
commit
00124d1b1a
29 changed files with 113 additions and 82 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue