Skip to content

Commit

Permalink
Silence deprecation warning (#688)
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 authored Dec 18, 2023
1 parent bf54645 commit 0ab72e8
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 0ab72e8

Please sign in to comment.