Skip to content

Commit 79b7751

Browse files
Silence codecvt deprecation warning in StringUtils.cpp
1 parent c1e5f7b commit 79b7751

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

StringUtils.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
| SPDX-License-Identifier: GPL-2.0-or-later |
88
\*---------------------------------------------------------*/
99

10+
/*---------------------------------------------------------*\
11+
| codecvt is deprecated, but there's no replacement so we |
12+
| can ignore the warnings |
13+
\*---------------------------------------------------------*/
14+
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
15+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
16+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
17+
1018
#include <codecvt>
1119
#include <locale>
1220
#include <string>

0 commit comments

Comments
 (0)