Silence codecvt deprecation warning in StringUtils.cpp

This commit is contained in:
Adam Honse
2026-01-23 08:25:28 -06:00
parent c1e5f7bb1b
commit ba91bf4d2e

View File

@@ -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 <codecvt>
#include <locale>
#include <string>