diff --git a/include/os/osSocket.h b/include/os/osSocket.h index 5ee3f30ddf..1cedfc4dcd 100644 --- a/include/os/osSocket.h +++ b/include/os/osSocket.h @@ -85,7 +85,6 @@ typedef int32_t SOCKET; #else #define TAOS_EPOLL_WAIT_TIME 500 typedef int32_t SOCKET; -typedef SOCKET EpollFd; #define EpollClose(pollFd) taosCloseSocket(pollFd) #endif diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index 346d2c7584..5372533455 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -2556,7 +2556,7 @@ int32_t dumpBlockData(SSDataBlock* pDataBlock, const char* flag, char** pDataBuf memset(pBuf, 0, sizeof(pBuf)); code = formatTimestamp(pBuf, sizeof(pBuf), *(uint64_t*)var, pColInfoData->info.precision); if (code != TSDB_CODE_SUCCESS) { - tsnprintf(pBuf, sizeof(pBuf), "NaN"); + TAOS_UNUSED(tsnprintf(pBuf, sizeof(pBuf), "NaN")); } len += tsnprintf(dumpBuf + len, size - len, " %25s |", pBuf); if (len >= size - 1) goto _exit;