From 3596685e800dc32c8584cdbe141e10218fd28d8c Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Wed, 26 May 2021 15:50:58 -0700 Subject: [PATCH] disable warning from Functional header (#2352) * update the correct warning --- sdk/core/azure-core/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index fb8e95377..8ee63e9c0 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -148,6 +148,13 @@ if(BUILD_TRANSPORT_WINHTTP) target_link_libraries(azure-core PRIVATE winhttp) endif() +if (MSVC) + # Disable warnings: + # - C6285: ( || ) -> VBProject static analysis on Functional header: + # _Is_large, regression from VS version 19.28.29915.0 to 19.29.30037.0 + target_compile_options(azure-core PUBLIC /wd6285) +endif() + get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp") generate_documentation(azure-core ${AZ_LIBRARY_VERSION})