From 34635a992a92829263530024869ea7dc7553f44d Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 29 Oct 2020 16:27:21 +0800 Subject: [PATCH 1/2] compile err in windows --- src/client/src/tscSystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index d2fcbd1d1e..77d668c5af 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -159,7 +159,7 @@ void taos_init_imp(void) { void taos_init() { pthread_once(&tscinit, taos_init_imp); } // this function may be called by user or system, or by both simultaneously. -void taos_cleanup() { +void taos_cleanup(void) { tscDebug("start to cleanup client environment"); void* m = tscMetaCache; From 984073f1ef82ee5c7d4dacb8c857f819cd5a2121 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 29 Oct 2020 16:28:21 +0800 Subject: [PATCH 2/2] compile error in windows --- src/inc/taos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inc/taos.h b/src/inc/taos.h index 3153137347..2c6454ced1 100644 --- a/src/inc/taos.h +++ b/src/inc/taos.h @@ -64,7 +64,7 @@ typedef struct taosField { #endif DLL_EXPORT void taos_init(); -DLL_EXPORT void taos_cleanup(); +DLL_EXPORT void taos_cleanup(void); DLL_EXPORT int taos_options(TSDB_OPTION option, const void *arg, ...); DLL_EXPORT TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port); DLL_EXPORT void taos_close(TAOS *taos);