From 80fc4e1c4ea523a8f874e2933163dc927b729ef8 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 3 Aug 2020 09:07:15 +0200 Subject: [PATCH] Disabling -Wcast-function-type for FakeIt mocking framework and -Wdeprecated-copy for cloud data types (both cause warnings which become errors when compiling with -Werror and GCC 9.3.0 --- extras/test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") ##########################################################################