File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ add_library(cdfs MODULE ${SOURCE} cdfs.rc)
36
36
set_module_type(cdfs kernelmodedriver)
37
37
target_link_libraries (cdfs ${PSEH_LIB} memcmp)
38
38
add_importlibs(cdfs ntoskrnl hal)
39
+ set_property (TARGET cdfs PROPERTY C_STANDARD 90)
39
40
add_cd_file(TARGET cdfs DESTINATION reactos/system32/drivers NO_CAB FOR all )
40
41
add_registry_inf(cdfs_reg.inf)
41
-
42
- if (CLANG AND GCC)
43
- # Make __inline work as expected
44
- target_compile_options (cdfs PRIVATE -std=gnu89)
45
- endif ()
46
-
Original file line number Diff line number Diff line change @@ -113,16 +113,15 @@ if(CLANG)
113
113
-Wno-unused-value -Wno-parentheses-equality
114
114
-Wno-incompatible-pointer-types-discards-qualifiers
115
115
"-Wno-#pragma-messages;-Wno-cast-calling-convention" )
116
- if (GCC)
117
- target_compile_options (ext2fs PRIVATE -std=gnu89)
118
- endif ()
119
116
endif ()
120
117
121
118
target_link_libraries (ext2fs memcmp ${PSEH_LIB} )
122
119
add_definitions (-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
123
120
set_module_type(ext2fs kernelmodedriver)
124
121
add_importlibs(ext2fs ntoskrnl hal)
125
122
123
+ set_property (TARGET ext2fs PROPERTY C_STANDARD 90)
124
+
126
125
if (NOT USE_CLANG_CL)
127
126
# The fallback we have above prevents cl and clang-cl from using the same PCH
128
127
add_pch(ext2fs inc/ext2fs.h SOURCE )
Original file line number Diff line number Diff line change @@ -18,11 +18,8 @@ if(GCC OR CLANG)
18
18
target_compile_options (nfs41_driver PRIVATE "-Wno-switch" )
19
19
if (CLANG)
20
20
target_compile_options (nfs41_driver PRIVATE "-Wno-unused-value" )
21
- if (GCC)
22
- # When CLang mimicks GCC, it uses C17 as default, which breaks __inline
23
- target_compile_options (nfs41_driver PRIVATE "-std=gnu89" )
24
- endif ()
25
21
endif ()
26
22
endif ()
23
+ set_property (TARGET nfs41_driver PROPERTY C_STANDARD 90)
27
24
28
25
add_cd_file(TARGET nfs41_driver DESTINATION reactos/system32/drivers FOR all )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
53
53
add_compile_options ("$<$<COMPILE_LANGUAGE:C>:-Wold-style-declaration>" )
54
54
endif ()
55
55
else ()
56
- add_compile_options ("$<$<COMPILE_LANGUAGE:C>:-std=gnu99;- Wno-microsoft>" )
56
+ add_compile_options ("$<$<COMPILE_LANGUAGE:C>:-Wno-microsoft>" )
57
57
add_compile_options (-Wno-pragma-pack)
58
58
add_compile_options (-fno-associative-math)
59
59
add_compile_options (-fcommon)
You can’t perform that action at this time.
0 commit comments