Warning fixes

This commit is contained in:
Henrik Rydgård
2025-09-02 11:47:52 +02:00
parent 00edf03819
commit 4aaf44dd02
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -113,8 +113,8 @@ static inline bool IsGPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0; }
static inline bool IsFPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x20; }
static inline bool IsVPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x40; }
static inline bool IsXPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x60; }
static inline bool IsCFR(LoongArch64CFR cfr) { return (cfr < 8); }
static inline bool IsFCSR(LoongArch64FCSR fcsr) { return (fcsr < 4); }
static inline bool IsCFR(LoongArch64CFR cfr) { return ((int)cfr < 8); }
static inline bool IsFCSR(LoongArch64FCSR fcsr) { return ((int)fcsr < 4); }
inline LoongArch64Reg EncodeRegToV(LoongArch64Reg reg) { return (LoongArch64Reg)(DecodeReg(reg) + V0); }
struct FixupBranch {
@@ -1395,4 +1395,4 @@ private:
void PoisonMemory(int offset) override;
};
};
};
+1 -1
View File
@@ -4281,7 +4281,7 @@ int FlushPtpSocket(int socketId) {
// Send Empty Data just to trigger Nagle on/off effect to flush the send buffer, Do we need to trigger this at all or is it automatically flushed?
//changeBlockingMode(socket->id, nonblock);
int ret = send(socketId, nullptr, 0, MSG_NOSIGNAL);
int ret = send(socketId, "", 0, MSG_NOSIGNAL);
if (ret == SOCKET_ERROR) ret = socket_errno;
//changeBlockingMode(socket->id, 1);