mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[ci] fix warnings detected
This commit is contained in:
@@ -398,8 +398,8 @@ BOOL gdi_RgnToCRect(const HGDI_RGN rgn, INT32* left, INT32* top, INT32* right, I
|
||||
* @param bottom y2
|
||||
*/
|
||||
|
||||
INLINE BOOL gdi_CRgnToCRect(INT32 x, INT32 y, INT32 w, INT32 h, INT32* left, INT32* top,
|
||||
INT32* right, INT32* bottom)
|
||||
BOOL gdi_CRgnToCRect(INT32 x, INT32 y, INT32 w, INT32 h, INT32* left, INT32* top, INT32* right,
|
||||
INT32* bottom)
|
||||
{
|
||||
BOOL rc = TRUE;
|
||||
*left = x;
|
||||
|
||||
@@ -504,8 +504,8 @@ BOOL GetCommState(HANDLE hFile, LPDCB lpDCB)
|
||||
lpLocalDcb->fAbortOnError = (handflow.ControlHandShake & SERIAL_ERROR_ABORT) != 0;
|
||||
/* lpLocalDcb->fDummy2 not used */
|
||||
lpLocalDcb->wReserved = 0; /* must be zero */
|
||||
lpLocalDcb->XonLim = handflow.XonLimit;
|
||||
lpLocalDcb->XoffLim = handflow.XoffLimit;
|
||||
lpLocalDcb->XonLim = WINPR_ASSERTING_INT_CAST(WORD, handflow.XonLimit);
|
||||
lpLocalDcb->XoffLim = WINPR_ASSERTING_INT_CAST(WORD, handflow.XoffLimit);
|
||||
SERIAL_LINE_CONTROL lineControl = { 0 };
|
||||
|
||||
if (!CommDeviceIoControl(pComm, IOCTL_SERIAL_GET_LINE_CONTROL, NULL, 0, &lineControl,
|
||||
|
||||
@@ -701,7 +701,7 @@ int comm_ioctl_tcsetattr(int fd, int optional_actions, const struct termios* ter
|
||||
winpr_strerror(errno, buffer, sizeof(buffer)), errno);
|
||||
return rrc;
|
||||
}
|
||||
// NOLINTNEXTLINE(bugprone-suspicious-memory-comparison)
|
||||
// NOLINTNEXTLINE(bugprone-suspicious-memory-comparison,cert-exp42-c,cert-flp37-c)
|
||||
} while ((memcmp(¤tState, termios_p, sizeof(struct termios)) != 0) && (count++ < 2));
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user