mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[NFS41_DRIVER] Use GNU89 standard when compiling with CLang.
This commit is contained in:
parent
1f8db9824e
commit
567a5231d5
1 changed files with 6 additions and 2 deletions
|
@ -14,10 +14,14 @@ set_module_type(nfs41_driver kernelmodedriver)
|
|||
target_link_libraries(nfs41_driver ntoskrnl_vista rdbsslib rxce copysup memcmp ${PSEH_LIB})
|
||||
add_importlibs(nfs41_driver ntoskrnl hal)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
if(GCC OR CLANG)
|
||||
target_compile_options(nfs41_driver PRIVATE "-Wno-switch")
|
||||
if(USE_CLANG_CL)
|
||||
if(CLANG)
|
||||
target_compile_options(nfs41_driver PRIVATE "-Wno-unused-value")
|
||||
if(GCC)
|
||||
# When CLang mimicks GCC, it uses C17 as default, which breaks __inline
|
||||
target_compile_options(nfs41_driver PRIVATE "-std=gnu89")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue