Skip to content

Commit b65bf15

Browse files
committed
Suppress MSVC warning 4702 for TodayMock
1 parent 1bc458a commit b65bf15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

samples/today/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ add_library(todaygraphql_nointrospection STATIC TodayMock.cpp)
1515
target_link_libraries(todaygraphql_nointrospection PUBLIC today_nointrospection_schema)
1616
target_include_directories(todaygraphql_nointrospection PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
1717

18+
if(MSVC)
19+
# warning C4702: unreachable code
20+
target_compile_options(todaygraphql PUBLIC /wd4702)
21+
target_compile_options(todaygraphql_nointrospection PUBLIC /wd4702)
22+
endif()
23+
1824
# sample
1925
add_executable(sample sample.cpp)
2026
target_link_libraries(sample PRIVATE

0 commit comments

Comments
 (0)