Skip to content

Commit bcd529e

Browse files
committed
Silence GCC warning about deprecated wstring_convert with no replacement ...
1 parent 949aef7 commit bcd529e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/freetype.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ Character& FontImpl::GetCharacter(std::string::iterator& it, const std::string::
115115
// https://stackoverflow.com/questions/32055357/visual-studio-c-2015-stdcodecvt-with-char16-t-or-char32-t
116116
static std::wstring_convert<std::codecvt_utf8<int32_t>, int32_t> cvt;
117117
#else
118+
#pragma GCC diagnostic push
119+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
118120
static std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> cvt;
121+
#pragma GCC diagnostic pop
119122
#endif
120123
const char& ch = (*it); // Just to have less code
121124
char32_t unicodeCharacter = ch;

0 commit comments

Comments
 (0)