mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 07:05:40 +00:00
Misc: Warning fixes
This commit is contained in:
parent
e6bfcf22d9
commit
c1e6616e5f
|
@ -91,7 +91,7 @@ void GDBConnection::onEmulationResumed()
|
||||||
|
|
||||||
void GDBConnection::writePacket(std::string_view packet)
|
void GDBConnection::writePacket(std::string_view packet)
|
||||||
{
|
{
|
||||||
Log_DebugPrintf("(%" PRIdPTR ") < %*s", m_descriptor, packet.length(), packet.data());
|
Log_DebugPrintf("(%" PRIdPTR ") < %.*s", m_descriptor, static_cast<int>(packet.length()), packet.data());
|
||||||
if (write(packet.data(), packet.length()) == -1)
|
if (write(packet.data(), packet.length()) == -1)
|
||||||
{
|
{
|
||||||
Log_ErrorPrintf("(%" PRIdPTR ") Failed to write to socket: %s", m_descriptor,
|
Log_ErrorPrintf("(%" PRIdPTR ") Failed to write to socket: %s", m_descriptor,
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
Log_SetChannel(CDImageDevice);
|
Log_SetChannel(CDImageDevice);
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
|
||||||
static constexpr u32 MAX_TRACK_NUMBER = 99;
|
static constexpr u32 MAX_TRACK_NUMBER = 99;
|
||||||
static constexpr int ALL_SUBCODE_SIZE = 96;
|
static constexpr int ALL_SUBCODE_SIZE = 96;
|
||||||
|
|
||||||
|
@ -56,6 +58,8 @@ static void DeinterleaveSubcode(const u8* subcode_in, u8* subcode_out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
// The include order here is critical.
|
// The include order here is critical.
|
||||||
|
|
Loading…
Reference in a new issue