From 9676e86433cc62c16470bf2899af0499bbaaad47 Mon Sep 17 00:00:00 2001 From: Knut Andre Tidemann Date: Mon, 10 Sep 2018 15:12:42 +0200 Subject: [PATCH] tests: ignore deprecated declarations warnings in GCC. Adding the -Wno-deprecated-declarations flag for GCC compilers removes the many deprecated-declarations warnings emitted by GCC when compiling the tests. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c0f40728f..b0176ac45 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -109,7 +109,7 @@ foreach(file ${files}) target_link_libraries(${testcase} ${NLOHMANN_JSON_TARGET_NAME}) if(NOT MSVC) - set_target_properties(${testcase} PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-float-equal") + set_target_properties(${testcase} PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-float-equal") endif() add_test(NAME "${testcase}_default"