未验证 提交 d146769b 编写于 作者: X Xiaoyu Wang 提交者: GitHub

Merge pull request #18819 from taosdata/enh/insertOptimize_wxy

fix: compile warn
...@@ -500,8 +500,9 @@ int32_t taosCloseDir(TdDirPtr *ppDir) { ...@@ -500,8 +500,9 @@ int32_t taosCloseDir(TdDirPtr *ppDir) {
void taosGetCwd(char *buf, int32_t len) { void taosGetCwd(char *buf, int32_t len) {
#if !defined(WINDOWS) #if !defined(WINDOWS)
(void)getcwd(buf, len - 1); char *unused __attribute__((unused));
unused = getcwd(buf, len - 1);
#else #else
strncpy(buf, "not implemented on windows", len -1); strncpy(buf, "not implemented on windows", len - 1);
#endif #endif
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册