fix: resolve all remaining compilation warnings

This commit is contained in:
zukrmn
2026-03-07 04:43:50 +00:00
committed by JuiceyDev
parent 00148791f4
commit 42b0352ec3
26 changed files with 51 additions and 40 deletions

View File

@@ -344,7 +344,7 @@ void Socket::SocketInputStreamLocal::close()
{
m_streamOpen = false;
EnterCriticalSection(&s_hostQueueLock[m_queueIdx]);
s_hostQueue[m_queueIdx] = std::queue<unsigned char>();
while(!s_hostQueue[m_queueIdx].empty()) s_hostQueue[m_queueIdx].pop();
LeaveCriticalSection(&s_hostQueueLock[m_queueIdx]);
}
@@ -392,7 +392,7 @@ void Socket::SocketOutputStreamLocal::close()
{
m_streamOpen = false;
EnterCriticalSection(&s_hostQueueLock[m_queueIdx]);
s_hostQueue[m_queueIdx] = std::queue<unsigned char>();
while(!s_hostQueue[m_queueIdx].empty()) s_hostQueue[m_queueIdx].pop();
LeaveCriticalSection(&s_hostQueueLock[m_queueIdx]);
}