From 0ac9dbc34b0fb82b257b859fd0c6529af2cbedda Mon Sep 17 00:00:00 2001 From: Stefano Bonicatti Date: Tue, 3 Sep 2024 17:31:31 +0200 Subject: [PATCH] build: Silence deprecation warnings about non standard extensions on VS2022 (#8405) --- cmake/flags.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index e0896f72b90..29b531c7c51 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -355,6 +355,9 @@ function(setupBuildFlags) "$<$>:NDEBUG>" _WIN32_WINNT=_WIN32_WINNT_WIN7 NTDDI_VERSION=NTDDI_WIN7 + # VS2022 warns about this; the AWS SDK uses this non standard extension. + # Updating the SDK and switching to C++20 should fix this. + _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING ) set(windows_cxx_compile_options