From 9abf05ca86eae5f0da11e7b518d8e6a3b40a3cc5 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 24 Apr 2024 11:26:09 +0200 Subject: [PATCH] Add _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING to the default compiler flags to suppress the stdext::checked_array_iterator deprecation warnings at this moment * ACE/bin/MakeProjectCreator/config/vc_warnings.mpb: --- ACE/bin/MakeProjectCreator/config/vc_warnings.mpb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ACE/bin/MakeProjectCreator/config/vc_warnings.mpb b/ACE/bin/MakeProjectCreator/config/vc_warnings.mpb index b951e280931ce..b1dda80776244 100644 --- a/ACE/bin/MakeProjectCreator/config/vc_warnings.mpb +++ b/ACE/bin/MakeProjectCreator/config/vc_warnings.mpb @@ -51,6 +51,17 @@ feature(vc_avoid_winsock_warnings) { } } +feature(vc_avoid_stdext_arr_iters_warning) { + specific(prop:microsoft) { + macros += _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING + } + verbatim(cmake, macros, 1) { + if(MSVC) + " add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)" + endif() + } +} + feature(vc_avoid_hides_local_declaration) { specific(vc14) { DisableSpecificWarnings += 4456