Skip to content

Commit e7813a8

Browse files
authored
[release/6.x] Remove warnings when building test binaries (#7774)
1 parent 00be281 commit e7813a8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

cmake/common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function(add_test_bin name)
5151
enable_coverage(${name})
5252
target_link_libraries(${name} PRIVATE ${LINK_LIBCXX} ccfcrypto.host)
5353
add_san(${name})
54+
target_compile_definitions(${name} PRIVATE CCF_LOGGER_NO_DEPRECATE)
5455
endfunction()
5556

5657
# Helper for building clients inheriting from perf_client

src/http/test/curl_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the Apache 2.0 License.
33

4-
#define CCF_LOGGER_NO_DEPRECATE
5-
64
#include "ccf/ds/json.h"
75
#include "ccf/ds/logger.h"
86
#include "curl/curl.h"

0 commit comments

Comments
 (0)