get rid of compile warning
This commit is contained in:
parent
a4a38e2256
commit
3721da020d
|
@ -246,8 +246,8 @@ static FORCE_INLINE void vnodeSetCreateNtbReq(SVnodeReq *pReq, char *name, uint3
|
||||||
pReq->ctReq.ntbCfg.pSchema = pSchema;
|
pReq->ctReq.ntbCfg.pSchema = pSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type);
|
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type);
|
||||||
void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type);
|
void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type);
|
||||||
|
|
||||||
/* ------------------------ FOR COMPILE ------------------------ */
|
/* ------------------------ FOR COMPILE ------------------------ */
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq);
|
static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq);
|
||||||
static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq);
|
static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq);
|
||||||
|
|
||||||
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) {
|
int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type) {
|
||||||
int tsize = 0;
|
int tsize = 0;
|
||||||
|
|
||||||
tsize += taosEncodeFixedU64(buf, pReq->ver);
|
tsize += taosEncodeFixedU64(buf, pReq->ver);
|
||||||
|
@ -36,7 +36,7 @@ int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) {
|
||||||
return tsize;
|
return tsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type) {
|
void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type) {
|
||||||
buf = taosDecodeFixedU64(buf, &(pReq->ver));
|
buf = taosDecodeFixedU64(buf, &(pReq->ver));
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
Loading…
Reference in New Issue