diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-01-12 23:05:45 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-01-13 11:11:08 -0800 |
| commit | fd04f4f32dcb322e3efa51400ed8638a8beb288f (patch) | |
| tree | e07ece4d308db4f6532c20fb22babb10afa475c8 /Source/Core/Common/HttpRequest.cpp | |
| parent | 29d6dd609c4e77a6d2a6bcac9f48e44cc0ab8814 (diff) | |
Replace use of of unsigned char* with fmt
Using unsigned char* or signed char* results in a deprecation warning, which is treated as an error. It needs to be casted to regular char* for it to work.
Diffstat (limited to 'Source/Core/Common/HttpRequest.cpp')
| -rw-r--r-- | Source/Core/Common/HttpRequest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/HttpRequest.cpp b/Source/Core/Common/HttpRequest.cpp index e565fa293a..a8ed0d26ed 100644 --- a/Source/Core/Common/HttpRequest.cpp +++ b/Source/Core/Common/HttpRequest.cpp @@ -228,7 +228,8 @@ HttpRequest::Response HttpRequest::Impl::Fetch(const std::string& url, Method me else { ERROR_LOG_FMT(COMMON, "Failed to {} {}: server replied with code {} and body\n\x1b[0m{:.{}}", - type, url, response_code, buffer.data(), static_cast<int>(buffer.size())); + type, url, response_code, reinterpret_cast<char*>(buffer.data()), + static_cast<int>(buffer.size())); } return {}; } |
