Skip to content

Commit

Permalink
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jun 20, 2024
1 parent 41c821e commit cc3f411
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions onnxruntime/core/providers/cpu/text/string_normalizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,14 @@ class Utf8ConverterGeneric {
}

private:
#if defined(__GNUC__) && __cplusplus >= 202002L
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
std::codecvt_utf8<wchar_t> converter_;
#if defined(__GNUC__) && __cplusplus >= 202002L
#pragma GCC diagnostic pop
#endif
};

// We need to specialize for MS as there is
Expand Down

0 comments on commit cc3f411

Please sign in to comment.