Silenced clang warnings about unused to_string function.

This commit is contained in:
Andrey Semashev 2023-02-07 13:39:11 +03:00
parent 5f2d434a9d
commit b3c5e11f16

View File

@ -187,6 +187,12 @@ typedef basic_custom_string< char > custom_string;
typedef basic_custom_string< wchar_t > wcustom_string;
typedef basic_custom_string< fs::path::value_type > pcustom_string;
#if defined(__clang__)
#pragma clang diagnostic push
// unused function 'to_string'
#pragma clang diagnostic ignored "-Wunused-function"
#endif // defined(__clang__)
inline std::string const& to_string(std::string const& s)
{
return s;
@ -197,6 +203,10 @@ inline std::string to_string(fs::path const& p)
return p.string();
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif // defined(__clang__)
std::string platform(BOOST_PLATFORM);
void check(const fs::path& source, const std::string& expected, const char* file, int line)