mirror of
https://github.com/boostorg/filesystem.git
synced 2025-05-12 13:41:47 +00:00
Silenced clang warnings about unused to_string function.
This commit is contained in:
parent
5f2d434a9d
commit
b3c5e11f16
@ -187,6 +187,12 @@ typedef basic_custom_string< char > custom_string;
|
|||||||
typedef basic_custom_string< wchar_t > wcustom_string;
|
typedef basic_custom_string< wchar_t > wcustom_string;
|
||||||
typedef basic_custom_string< fs::path::value_type > pcustom_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)
|
inline std::string const& to_string(std::string const& s)
|
||||||
{
|
{
|
||||||
return s;
|
return s;
|
||||||
@ -197,6 +203,10 @@ inline std::string to_string(fs::path const& p)
|
|||||||
return p.string();
|
return p.string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif // defined(__clang__)
|
||||||
|
|
||||||
std::string platform(BOOST_PLATFORM);
|
std::string platform(BOOST_PLATFORM);
|
||||||
|
|
||||||
void check(const fs::path& source, const std::string& expected, const char* file, int line)
|
void check(const fs::path& source, const std::string& expected, const char* file, int line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user