Fix live tests CI compilation (unused variable warning - gets treated as error) (#4685)
* Fix live tests CI compilation (unused variable warning - gets treated as error) * A warning popped up in opentelemetry due to header reordering --------- Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Родитель
b303a70eaa
Коммит
16a64ab3e9
|
@ -79,8 +79,8 @@ TEST_F(TestCbs, CbsOpen)
|
|||
{
|
||||
ClaimsBasedSecurity cbs(session);
|
||||
cbs.SetTrace(true);
|
||||
CbsOpenResult openResult;
|
||||
EXPECT_EQ(CbsOpenResult::Ok, openResult = cbs.Open());
|
||||
CbsOpenResult openResult = cbs.Open();
|
||||
EXPECT_EQ(CbsOpenResult::Ok, openResult);
|
||||
GTEST_LOG_(INFO) << "Open Completed.";
|
||||
if (openResult == CbsOpenResult::Ok)
|
||||
{
|
||||
|
|
|
@ -5,8 +5,17 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 6323) // Disable "Use of arithmetic operator on Boolean type" warning.
|
||||
#endif
|
||||
|
||||
#include <opentelemetry/sdk/trace/exporter.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
class RecordedSpan : public opentelemetry::sdk::trace::Recordable {
|
||||
public:
|
||||
struct Attribute
|
||||
|
|
Загрузка…
Ссылка в новой задаче