Skip to content

Commit 69a4aad

Browse files
authored
Merge pull request #185 from arduino-libraries/fix-fakeit-warning-g++-9
Disable warnings when compiling test code -Werror and GCC 9.3.0
2 parents 8a3b0e8 + 80fc4e1 commit 69a4aad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extras/test/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ set(TEST_TARGET_SRCS
8484

8585
add_compile_definitions(HOST)
8686
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
87+
add_compile_options(-Wno-cast-function-type)
8788

8889
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage")
89-
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage")
90+
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy")
9091

9192
##########################################################################
9293

0 commit comments

Comments
 (0)