From 6a59f6128af059263adf92958527248832300493 Mon Sep 17 00:00:00 2001 From: George Arama Date: Thu, 30 May 2024 14:37:39 -0700 Subject: [PATCH] Remove MSVC compiler warning suppressions in KeyVault The code within the `mocked_transport_adapter_test.hpp` file, specifically within the `Azure::Security::KeyVault::Keys` namespace, has been updated. The `#if defined(_MSC_VER)` preprocessor directive along with its associated `#pragma warning(push)` and `#pragma warning(disable : 4996)` directives have been removed. The corresponding `#pragma warning(pop)` directive has also been removed. The lines of code that were between these preprocessor directives remain unchanged. These changes remove specific compiler warning suppressions for MSVC compilers, but do not alter the functional behavior of the code. --- .../test/ut/mocked_transport_adapter_test.hpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/ut/mocked_transport_adapter_test.hpp b/sdk/keyvault/azure-security-keyvault-keys/test/ut/mocked_transport_adapter_test.hpp index b4a99b725..4ef4ca134 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/test/ut/mocked_transport_adapter_test.hpp +++ b/sdk/keyvault/azure-security-keyvault-keys/test/ut/mocked_transport_adapter_test.hpp @@ -91,15 +91,8 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Keys { nam keyType = "oct"; } -#if defined(_MSC_VER) -#pragma warning(push) -#pragma warning(disable : 4996) -#endif result += fakeKey; result += keyType.c_str(); -#if defined(_MSC_VER) -#pragma warning(pop) -#endif return result.c_str(); }