提交 5cadc824 编写于 作者: S Shengliang Guan

fix compile errors in CI

上级 592278a6
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wwrite-strings" #pragma GCC diagnostic ignored "-Wwrite-strings"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
typedef struct ResultObj { typedef struct ResultObj {
int32_t numOfResult; int32_t numOfResult;
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
#include "taos.h" #include "taos.h"
#include "qHistogram.h" #include "qHistogram.h"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
namespace { namespace {
void doHistogramAddTest() { void doHistogramAddTest() {
SHistogramInfo* pHisto = NULL; SHistogramInfo* pHisto = NULL;
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include "qAggMain.h" #include "qAggMain.h"
#include "tcompare.h" #include "tcompare.h"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
TEST(testCase, patternMatchTest) { TEST(testCase, patternMatchTest) {
SPatternCompareInfo info = PATTERN_COMPARE_INFO_INITIALIZER; SPatternCompareInfo info = PATTERN_COMPARE_INFO_INITIALIZER;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#include "qPercentile.h" #include "qPercentile.h"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
namespace { namespace {
tMemBucket *createBigIntDataBucket(int32_t start, int32_t end) { tMemBucket *createBigIntDataBucket(int32_t start, int32_t end) {
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include "taos.h" #include "taos.h"
#include "tsdb.h" #include "tsdb.h"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
namespace { namespace {
// simple test // simple test
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
#include "ttoken.h" #include "ttoken.h"
#include "tutil.h" #include "tutil.h"
#pragma GCC diagnostic ignored "-Werror=unused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
namespace { namespace {
/** /**
......
...@@ -6,14 +6,17 @@ ...@@ -6,14 +6,17 @@
#include "taos.h" #include "taos.h"
#include "tsdb.h" #include "tsdb.h"
#pragma GCC diagnostic ignored "-Wwrite-strings"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#pragma GCC diagnostic ignored "-Wsign-compare"
#include "../../client/inc/tscUtil.h" #include "../../client/inc/tscUtil.h"
#include "tutil.h" #include "tutil.h"
#include "tvariant.h" #include "tvariant.h"
#include "ttokendef.h" #include "ttokendef.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wwrite-strings"
#pragma GCC diagnostic ignored "-Werror=unused-function"
namespace { namespace {
int32_t testValidateName(char* name) { int32_t testValidateName(char* name) {
SStrToken token = {0}; SStrToken token = {0};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册