From 60e1c2c7d41c05d438ab109c1553e20444ac79eb Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 19 Jul 2024 15:00:56 +0800 Subject: [PATCH] fix:[TD-31017]process return value in clientRawBlockWrite.c --- include/util/taoserror.h | 2 +- source/client/src/clientRawBlockWrite.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 24f9d041fc..443cb3fa5a 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -53,7 +53,7 @@ int32_t taosGetErrSize(); #define terrln (*taosGetErrln()) #define SET_ERROR_MSG(MSG, ...) \ - snprintf(terrMsg, ERR_MSG_LEN, MSG, ##__VA_ARGS__) + (void)snprintf(terrMsg, ERR_MSG_LEN, MSG, ##__VA_ARGS__) #define TSDB_CODE_SUCCESS 0 #define TSDB_CODE_FAILED -1 // unknown or needn't tell detail error diff --git a/source/client/src/clientRawBlockWrite.c b/source/client/src/clientRawBlockWrite.c index 18b4b924e6..3db3e67169 100644 --- a/source/client/src/clientRawBlockWrite.c +++ b/source/client/src/clientRawBlockWrite.c @@ -478,7 +478,7 @@ static void buildChildElement(cJSON* json, SVCreateTbReq* pCreateReq) { end: RAW_FALSE_CHECK(cJSON_AddItemToObject(json, "tags", tags)); - taosArrayDestroy(pTagVals); + (void)taosArrayDestroy(pTagVals); } static void buildCreateCTableJson(SVCreateTbReq* pCreateReq, int32_t nReqs, cJSON** pJson) {