diff --git a/extras/test/CMakeLists.txt b/extras/test/CMakeLists.txt index 0e680a94a..5269338c7 100644 --- a/extras/test/CMakeLists.txt +++ b/extras/test/CMakeLists.txt @@ -84,9 +84,10 @@ set(TEST_TARGET_SRCS add_compile_definitions(HOST) add_compile_options(-Wall -Wextra -Wpedantic -Werror) +add_compile_options(-Wno-cast-function-type) set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage") -set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage") +set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy") ##########################################################################