diff --git a/source/os/src/osSemaphore.c b/source/os/src/osSemaphore.c index 58c832af89..1b9e8d3273 100644 --- a/source/os/src/osSemaphore.c +++ b/source/os/src/osSemaphore.c @@ -263,7 +263,7 @@ int32_t taosGetPIdByName(const char* name, int32_t* pPId) { fp = fopen(filepath, "r"); if (NULL != fp) { if (fgets(buf, tListLen(buf) - 1, fp) == NULL) { - fclose(fp); + TAOS_UNUSED(fclose(fp)); continue; } @@ -272,7 +272,7 @@ int32_t taosGetPIdByName(const char* name, int32_t* pPId) { char* end = NULL; *pPId = taosStr2Int32(ptr->d_name, &end, 10); } - fclose(fp); + TAOS_UNUSED(fclose(fp)); } }