File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -327,9 +327,15 @@ macro(swift_common_cxx_warnings)
327
327
# dynamic libraries with this flag.
328
328
check_cxx_compiler_flag ("-fapplication-extension" CXX_SUPPORTS_FAPPLICATION_EXTENSION )
329
329
330
- # Disable C4068: unknown pragma. This means that MSVC doesn't report hundreds of warnings across
331
- # the repository for IDE features such as #pragma mark "Title".
330
+ # Disable C4067: expected tokens following preprocessor directive - expected a
331
+ # newline.
332
+ #
333
+ # Disable C4068: unknown pragma.
334
+ #
335
+ # This means that MSVC doesn't report hundreds of warnings across the
336
+ # repository for IDE features such as #pragma mark "Title".
332
337
if ("${CMAKE_C_COMPILER_ID} " STREQUAL "MSVC" )
338
+ add_compile_options ($< $< COMPILE_LANGUAGE:CXX> :/wd4067> )
333
339
add_compile_options ($< $< COMPILE_LANGUAGE:CXX> :/wd4068> )
334
340
335
341
check_cxx_compiler_flag ("/permissive-" CXX_SUPPORTS_PERMISSIVE_FLAG )
You can’t perform that action at this time.
0 commit comments