From ba91bf4d2e68a974fe924fbbc74368e19a9bb2ab Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 23 Jan 2026 08:25:28 -0600 Subject: [PATCH] Silence codecvt deprecation warning in StringUtils.cpp --- StringUtils.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/StringUtils.cpp b/StringUtils.cpp index c36ddc7ee..880a60bf4 100644 --- a/StringUtils.cpp +++ b/StringUtils.cpp @@ -7,6 +7,18 @@ | SPDX-License-Identifier: GPL-2.0-or-later | \*---------------------------------------------------------*/ +/*---------------------------------------------------------*\ +| codecvt is deprecated, but there's no replacement so we | +| can ignore the warnings | +\*---------------------------------------------------------*/ +#if defined(_MSC_VER) +#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#elif defined(__clang__) +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include