mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 08:55:48 +00:00
Fix code analysis "issues"
This commit is contained in:
parent
d903ee7784
commit
d5037dff82
@ -54,6 +54,9 @@ static void inputSendThreadProc(void* context) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(suppress: 6001)
|
||||
#endif
|
||||
err = send(inputSock, (const char*) &holder->packet, holder->packetLength, 0);
|
||||
free(holder);
|
||||
if (err <= 0) {
|
||||
|
@ -35,7 +35,8 @@ extern WCHAR DbgBuf[512];
|
||||
|
||||
#if defined(LC_WINDOWS_PHONE) || defined(LC_WINDOWS)
|
||||
#include <crtdbg.h>
|
||||
#define LC_ASSERT _ASSERTE
|
||||
#define LC_ASSERT(x) __analysis_assume(x); \
|
||||
_ASSERTE(x)
|
||||
#else
|
||||
#define LC_ASSERT(x)
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user