From 5715f750e12e43d91cc3430ad57613f6c57f14b3 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Thu, 8 Apr 2021 23:31:59 -0700 Subject: [PATCH] Disable warning C6326 (potential comparison of a constant) in recently added azure-core tests. (#2090) --- sdk/core/azure-core/test/ut/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/test/ut/CMakeLists.txt b/sdk/core/azure-core/test/ut/CMakeLists.txt index be35189fa..c560b85dc 100644 --- a/sdk/core/azure-core/test/ut/CMakeLists.txt +++ b/sdk/core/azure-core/test/ut/CMakeLists.txt @@ -78,7 +78,7 @@ if (MSVC) # - 'testing::internal::Mutex::StaticConstructorSelector' # - 'testing::TestPartResult::Type' # is unscoped. Prefer 'enum class' over 'enum' (Enum.3) - # - C6323: Google comparisons + # - C6326: Google comparisons target_compile_options(azure-core-test PUBLIC /wd26495 /wd26812 /wd6326 /wd28204 /wd28020 /wd6330 /wd4389) endif() @@ -117,7 +117,8 @@ if(BUILD_TRANSPORT_CURL) if (MSVC) # warning C4389: '==': signed/unsigned mismatch - target_compile_options(azure-core-libcurl-test PUBLIC /wd4389) + # warning C6326: Google comparisons + target_compile_options(azure-core-libcurl-test PUBLIC /wd4389 /wd6326 ) endif() # Adding private headers from CORE to the tests so we can test the private APIs with no relative paths include.