Skip to content

Commit 792c1c3

Browse files
disable MSVC warning C5105
on Windows SDK version 10.0.17763.0, the SDK headers spuriously trip this warning. since swift-cmark itself doesn't emit this warning on its own, diabling this warning will allow it to be built with this SDK.
1 parent d1e2b26 commit 792c1c3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api_test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if(MSVC)
2424
else()
2525
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
2626
endif()
27-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4706 /D_CRT_SECURE_NO_WARNINGS")
27+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4706 /wd5105 /D_CRT_SECURE_NO_WARNINGS")
2828
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /TP")
2929
elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
3030
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99 -pedantic")

extensions/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if(MSVC)
111111
else()
112112
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
113113
endif()
114-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4706 /wd4204 /wd4221 /wd4100 /D_CRT_SECURE_NO_WARNINGS")
114+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4706 /wd4204 /wd4221 /wd4100 /wd5105 /D_CRT_SECURE_NO_WARNINGS")
115115
elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
116116
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic")
117117
endif()

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ if(MSVC)
195195
else()
196196
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
197197
endif()
198-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4706 /wd4204 /wd4221 /wd4100 /D_CRT_SECURE_NO_WARNINGS")
198+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4706 /wd4204 /wd4221 /wd4100 /wd5105 /D_CRT_SECURE_NO_WARNINGS")
199199
elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
200200
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic")
201201
endif()

0 commit comments

Comments
 (0)