From e84376c46140d0aec99d06741adef72a543b7328 Mon Sep 17 00:00:00 2001 From: xsren <285808407@qq.com> Date: Sat, 12 Oct 2024 16:29:13 +0800 Subject: [PATCH] fix: return val check --- include/os/osSocket.h | 1 - source/common/src/tdatablock.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;