Skip to content

Commit

Permalink
Silence deprecation warning
Browse files Browse the repository at this point in the history
Since this needs to be fixed upstream and there's no obvious replacement available (nanodbc/nanodbc#74).
  • Loading branch information
hadley committed Dec 18, 2023
1 parent e7af59e commit eb99ec6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nanodbc/nanodbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ inline void convert(const wide_string_type& in, std::string& out)
nullptr,
nullptr);
#else
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
out = std::wstring_convert<NANODBC_CODECVT_TYPE<wide_char_t>, wide_char_t>().to_bytes(in);
# pragma GCC diagnostic pop
#endif
#endif
#endif
Expand Down

0 comments on commit eb99ec6

Please sign in to comment.