Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
哥们要飞
TDengine
提交
6d17dbc0
T
TDengine
项目概览
哥们要飞
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6d17dbc0
编写于
7月 13, 2019
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up some warnings
上级
125636e9
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
28 addition
and
8 deletion
+28
-8
src/client/src/tscParseInsert.c
src/client/src/tscParseInsert.c
+1
-0
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+2
-1
src/kit/shell/shellEngine.c
src/kit/shell/shellEngine.c
+1
-1
src/kit/taosBenchmark/taosBenchmark.c
src/kit/taosBenchmark/taosBenchmark.c
+3
-2
src/rpc/src/trpc.c
src/rpc/src/trpc.c
+2
-0
src/system/inc/vnode.h
src/system/inc/vnode.h
+2
-0
src/system/src/mgmtDnode.c
src/system/src/mgmtDnode.c
+1
-0
src/system/src/mgmtDnodeInt.c
src/system/src/mgmtDnodeInt.c
+1
-0
src/system/src/mgmtMeter.c
src/system/src/mgmtMeter.c
+0
-1
src/system/src/mgmtShell.c
src/system/src/mgmtShell.c
+2
-0
src/system/src/mgmtVgroup.c
src/system/src/mgmtVgroup.c
+1
-0
src/system/src/vnodeImport.c
src/system/src/vnodeImport.c
+2
-1
src/system/src/vnodeMeter.c
src/system/src/vnodeMeter.c
+2
-0
src/system/src/vnodeRead.c
src/system/src/vnodeRead.c
+1
-0
src/system/src/vnodeShell.c
src/system/src/vnodeShell.c
+1
-1
src/system/src/vnodeStore.c
src/system/src/vnodeStore.c
+2
-0
src/system/src/vnodeUtil.c
src/system/src/vnodeUtil.c
+2
-0
src/util/src/tcrc32c.c
src/util/src/tcrc32c.c
+1
-0
src/util/src/ttime.c
src/util/src/ttime.c
+1
-1
未找到文件。
src/client/src/tscParseInsert.c
浏览文件 @
6d17dbc0
...
...
@@ -19,6 +19,7 @@
#define _XOPEN_SOURCE
#pragma GCC diagnostic ignored "-Woverflow"
#pragma GCC diagnostic ignored "-Wunused-variable"
#include <stdio.h>
#include <stdlib.h>
...
...
src/client/src/tscSQLParser.c
浏览文件 @
6d17dbc0
...
...
@@ -14,7 +14,7 @@
*/
#define _XOPEN_SOURCE
#define _
BSD
_SOURCE
#define _
DEFAULT
_SOURCE
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -35,6 +35,7 @@
#include "tschemautil.h"
#include "tsclient.h"
#include "tsql.h"
#pragma GCC diagnostic ignored "-Wunused-variable"
typedef
struct
SColumnIdList
{
SSchema
*
pSchema
;
...
...
src/kit/shell/shellEngine.c
浏览文件 @
6d17dbc0
...
...
@@ -14,7 +14,7 @@
*/
#define _XOPEN_SOURCE
#define _
BSD
_SOURCE
#define _
DEFAULT
_SOURCE
#include <assert.h>
#include <pthread.h>
...
...
src/kit/taosBenchmark/taosBenchmark.c
浏览文件 @
6d17dbc0
...
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* #define _GNU_SOURCE */
#define _GNU_SOURCE
#include <argp.h>
#include <assert.h>
...
...
@@ -30,6 +30,7 @@
#include <wordexp.h>
#include "taos.h"
#pragma GCC diagnostic ignored "-Wmissing-braces"
#define BUFFER_SIZE 65536
#define MAX_DB_NAME_SIZE 64
...
...
@@ -567,7 +568,7 @@ void *readTable(void *sarg) {
}
fprintf
(
fp
,
"|%10s | %10d | %12.2f | %10.2f |
\n
"
,
aggreFunc
[
j
]
==
"*"
?
" * "
:
aggreFunc
[
j
],
totalData
,
aggreFunc
[
j
]
[
0
]
==
'*'
?
" * "
:
aggreFunc
[
j
],
totalData
,
(
double
)(
num_of_tables
*
num_of_DPT
)
/
totalT
,
totalT
*
1000
);
printf
(
"select %10s took %.6f second(s)
\n
"
,
aggreFunc
[
j
],
totalT
);
}
...
...
src/rpc/src/trpc.c
浏览文件 @
6d17dbc0
...
...
@@ -50,6 +50,8 @@
#include "tudp.h"
#include "tutil.h"
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
typedef
struct
_msg_node
{
struct
_msg_node
*
next
;
void
*
ahandle
;
...
...
src/system/inc/vnode.h
浏览文件 @
6d17dbc0
...
...
@@ -503,6 +503,8 @@ void vnodeRemoveVnode(int vnode);
int
vnodeCreateVnode
(
int
vnode
,
SVnodeCfg
*
pCfg
,
SVPeerDesc
*
pDesc
);
void
vnodeOpenStreams
(
void
*
param
,
void
*
tmrId
);
void
vnodeCreateStream
(
SMeterObj
*
pObj
);
void
vnodeRemoveStream
(
SMeterObj
*
pObj
);
...
...
src/system/src/mgmtDnode.c
浏览文件 @
6d17dbc0
...
...
@@ -23,6 +23,7 @@
#include "mgmt.h"
#include "tschemautil.h"
#include "tstatus.h"
#pragma GCC diagnostic ignored "-Wunused-variable"
SDnodeObj
dnodeObj
;
...
...
src/system/src/mgmtDnodeInt.c
浏览文件 @
6d17dbc0
...
...
@@ -21,6 +21,7 @@
#include "mgmt.h"
#include "tsched.h"
#include "tutil.h"
#pragma GCC diagnostic ignored "-Wpointer-sign"
int
mgmtSendVPeersMsg
(
SVgObj
*
pVgroup
,
SDbObj
*
pDb
);
char
*
mgmtBuildVpeersIe
(
char
*
pMsg
,
SVgObj
*
pVgroup
,
SDbObj
*
pDb
);
...
...
src/system/src/mgmtMeter.c
浏览文件 @
6d17dbc0
...
...
@@ -516,7 +516,6 @@ int mgmtCreateMeter(SDbObj *pDb, SCreateTableMsg *pCreate) {
STabObj
*
pMetric
=
NULL
;
SVgObj
*
pVgroup
=
NULL
;
int
size
=
0
;
SAcctObj
*
pAcct
=
NULL
;
int
numOfTables
=
sdbGetNumOfRows
(
meterSdb
);
if
(
numOfTables
>=
tsMaxTables
)
{
...
...
src/system/src/mgmtShell.c
浏览文件 @
6d17dbc0
...
...
@@ -22,6 +22,8 @@
#include "mgmt.h"
#include "mgmtProfile.h"
#include "tlog.h"
#pragma GCC diagnostic ignored "-Wint-conversion"
#pragma GCC diagnostic ignored "-Wpointer-sign"
void
*
pShellConn
=
NULL
;
SConnObj
*
connList
;
...
...
src/system/src/mgmtVgroup.c
浏览文件 @
6d17dbc0
...
...
@@ -17,6 +17,7 @@
#include "mgmt.h"
#include "tschemautil.h"
#pragma GCC diagnostic ignored "-Wunused-variable"
void
*
vgSdb
=
NULL
;
int
tsVgUpdateSize
;
...
...
src/system/src/vnodeImport.c
浏览文件 @
6d17dbc0
...
...
@@ -25,6 +25,8 @@
#include "vnodeMgmt.h"
#include "vnodeShell.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wpointer-sign"
#pragma GCC diagnostic ignored "-Wint-conversion"
typedef
struct
{
SCompHeader
*
headList
;
...
...
@@ -61,7 +63,6 @@ typedef struct {
int
rows
;
}
SImportInfo
;
#define EXTRA_BYTES 8
int
vnodeImportData
(
SMeterObj
*
pObj
,
SImportInfo
*
pImport
);
int
vnodeGetImportStartPart
(
SMeterObj
*
pObj
,
char
*
payload
,
int
rows
,
TSKEY
key1
)
{
...
...
src/system/src/vnodeMeter.c
浏览文件 @
6d17dbc0
...
...
@@ -27,6 +27,8 @@
#include "vnodeShell.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wpointer-sign"
#define VALID_TIMESTAMP(key, curKey, prec) (((key) >= 0) && ((key) <= ((curKey) + 36500 * tsMsPerDay[prec])))
int
tsMeterSizeOnFile
;
...
...
src/system/src/vnodeRead.c
浏览文件 @
6d17dbc0
...
...
@@ -25,6 +25,7 @@
#include "vnode.h"
#include "vnodeRead.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wint-conversion"
int
(
*
pQueryFunc
[])(
SMeterObj
*
,
SQuery
*
)
=
{
vnodeQueryFromCache
,
vnodeQueryFromFile
};
...
...
src/system/src/vnodeShell.c
浏览文件 @
6d17dbc0
...
...
@@ -28,6 +28,7 @@
#include "vnode.h"
#include "vnodeRead.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wint-conversion"
void
*
pShellServer
=
NULL
;
SShellObj
**
shellList
=
NULL
;
...
...
@@ -216,7 +217,6 @@ int vnodeSendShellSubmitRspMsg(SShellObj *pObj, int code, int numOfPoints) {
int
vnodeProcessQueryRequest
(
char
*
pMsg
,
int
msgLen
,
SShellObj
*
pObj
)
{
int
ret
,
code
=
0
;
SMeterObj
*
pMeterObj
=
NULL
;
SQueryMeterMsg
*
pQueryMsg
;
SMeterSidExtInfo
**
pSids
=
NULL
;
int32_t
incNumber
=
0
;
...
...
src/system/src/vnodeStore.c
浏览文件 @
6d17dbc0
...
...
@@ -26,6 +26,8 @@
#include "vnodeStore.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wformat-overflow="
int
vnodeCreateMeterObjFile
(
int
vnode
);
int
tsMaxVnode
=
-
1
;
...
...
src/system/src/vnodeUtil.c
浏览文件 @
6d17dbc0
...
...
@@ -24,6 +24,8 @@
#include "vnodeDataFilterFunc.h"
#include "vnodeUtil.h"
#pragma GCC diagnostic ignored "-Wint-conversion"
int
vnodeCheckFileIntegrity
(
FILE
*
fp
)
{
/*
int savedSessions, savedMeterSize;
...
...
src/util/src/tcrc32c.c
浏览文件 @
6d17dbc0
...
...
@@ -23,6 +23,7 @@
#include "tcrc32c.h"
//todo : use the original source code
#pragma GCC diagnostic ignored "-Wunused-function"
#define POLY 0x82f63b78
#define LONG_SHIFT 8192
...
...
src/util/src/ttime.c
浏览文件 @
6d17dbc0
...
...
@@ -14,7 +14,7 @@
*/
#define _XOPEN_SOURCE
#define _
BSD
_SOURCE
#define _
DEFAULT
_SOURCE
#include <errno.h>
#include <stdio.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录