We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669eb3e commit fa1ffecCopy full SHA for fa1ffec
CMakeLists.txt
@@ -301,6 +301,9 @@ if(CPPDAP_BUILD_TESTS)
301
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
302
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
303
add_subdirectory(${CPPDAP_GOOGLETEST_DIR})
304
+ # googletest has -Werror=maybe-uninitialized problem.
305
+ # Disable all warnings in googletest code.
306
+ target_compile_options(gtest PRIVATE -w)
307
endif()
308
309
add_executable(cppdap-unittests ${DAP_TEST_LIST})
0 commit comments