From 1fbac7bf90b75b10a13ed99bb6f2b74ade12fa0e Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Fri, 11 Jul 2025 16:44:21 -0700 Subject: [PATCH] Silence warning C5291 for the entire STL. --- stl/inc/yvals_core.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stl/inc/yvals_core.h b/stl/inc/yvals_core.h index 4d8f0a2d76b..f6e9a23ef33 100644 --- a/stl/inc/yvals_core.h +++ b/stl/inc/yvals_core.h @@ -808,6 +808,9 @@ // warning C5278: adding a specialization for 'type trait' has undefined behavior // warning C5280: a static operator '()' requires at least '/std:c++23preview' // warning C5281: a static lambda requires at least '/std:c++23preview' +// warning C5291: 'DERIVED': deriving from the base class 'BASE' can cause potential runtime issues +// due to an ABI bug. Recommend adding a 4-byte data member to the base class +// for the padding at the end of it to work around this bug. (TRANSITION, ABI) // warning C6294: Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed #ifndef _STL_DISABLED_WARNINGS @@ -816,7 +819,7 @@ 4180 4324 4412 4455 4494 4514 4574 4582 4583 4587 \ 4588 4619 4623 4625 4626 4643 4648 4702 4793 4820 \ 4868 4988 5026 5027 5045 5220 5246 5278 5280 5281 \ - 6294 \ + 5291 6294 \ _STL_DISABLED_WARNING_C4577 \ _STL_DISABLED_WARNING_C4984 \ _STL_DISABLED_WARNING_C5053 \