From 052e51024a4a735dec7fa2622df158420e6a89fa Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 31 Mar 2020 23:55:16 +0800 Subject: [PATCH] [TD-71] fix return value in a func with void declartion. --- src/common/src/dataformat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/src/dataformat.c b/src/common/src/dataformat.c index 0496fc6feb..436426c86b 100644 --- a/src/common/src/dataformat.c +++ b/src/common/src/dataformat.c @@ -326,8 +326,6 @@ void tdInitDataCols(SDataCols *pCols, STSchema *pSchema) { pCols->cols[i].offset = colOffset(schemaColAt(pSchema, i)); pCols->cols[i].colId = colColId(schemaColAt(pSchema, i)); } - - return pCols; } void tdFreeDataCols(SDataCols *pCols) { @@ -380,4 +378,4 @@ static int tdFLenFromSchema(STSchema *pSchema) { } return ret; -} \ No newline at end of file +} -- GitLab