- fix compiler warnings

This commit is contained in:
2023-06-05 11:55:40 +03:00
parent 6b8549346c
commit 42cc9ee096
14 changed files with 37 additions and 35 deletions

View File

@@ -1208,7 +1208,7 @@ static const uint16_t byte_crc10_table[256] = {
/* Update the data block's CRC-10 remainder one byte at a time */
uint16_t update_crc10_by_bytes(uint16_t crc10_accum, const uint8_t *data_blk_ptr, int data_blk_size)
{
register int i;
/*register*/ int i;
for (i = 0; i < data_blk_size; i++) {
crc10_accum = ((crc10_accum << 8) & 0x3ff)

View File

@@ -61,7 +61,7 @@ void DatagramSocket::sendDatagram(InternetAddress &dest, const void *packetData,
if (mHandle == INVALID_SOCKET)
return;
int sent = ::sendto(mHandle, (const char*)packetData, packetSize, 0, dest.genericsockaddr(), dest.sockaddrLen());
/*int sent = */::sendto(mHandle, (const char*)packetData, packetSize, 0, dest.genericsockaddr(), dest.sockaddrLen());
}
unsigned DatagramSocket::recvDatagram(InternetAddress &src, void *packetBuffer, unsigned packetCapacity)

View File

@@ -315,10 +315,10 @@ static int hex2code(char s)
return 0;
}
static int hex2code(const char* s)
/*static int hex2code(const char* s)
{
return (hex2code(s[0]) << 4) + hex2code(s[1]);
}
}*/
std::string strx::fromHex2String(const std::string& s)
{