File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414#if defined(__GNUC__)
1515#pragma GCC diagnostic push
1616#pragma GCC diagnostic ignored "-Wshadow" // GCC: warning: declaration of 'expression' shadows a parameter or member
17- #if defined (__GNUC__ >= 13)
17+ #if (__GNUC__ >= 13)
1818#pragma GCC diagnostic ignored "-Wdangling-reference" // GCC: warning: possibly dangling reference to a temporary
1919#endif
2020#elif defined(_MSC_VER)
Original file line number Diff line number Diff line change 88
99#include " string/encoding.h"
1010
11+ #if defined(__clang__)
12+ #pragma clang diagnostic push
13+ #pragma clang diagnostic ignored "-Wdeprecated" // Clang: warning: 'codecvt' is deprecated
14+ #endif
15+
1116#include < algorithm>
1217#include < cassert>
1318#include < codecvt>
1419#include < locale>
1520#include < vector>
1621
17- #if defined(__clang__)
18- #pragma clang diagnostic push
19- #pragma clang diagnostic ignored "-Wdeprecated" // Clang: warning: 'codecvt' is deprecated
20- #endif
21-
2222namespace CppCommon {
2323
2424std::string Encoding::ToUTF8 (std::wstring_view wstr)
You can’t perform that action at this time.
0 commit comments