From b8b5a0d5f6cc734183069dcadc4cf637df2dc7e1 Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Wed, 8 May 2024 13:54:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/luabus/luabus.mak | 1 + core/quanta/quanta.mak | 1 + extend/laoi/laoi.mak | 1 + extend/lbson/lbson.mak | 1 + extend/lcodec/lcodec.mak | 1 + extend/lcodec/src/mysql.h | 2 +- extend/ldetour/ldetour.mak | 1 + extend/ljson/ljson.mak | 1 + extend/lmake/share.lua | 1 + extend/lmdb/lmdb.mak | 1 + extend/lminiz/lminiz.mak | 1 + extend/lsqlite/lsqlite.mak | 1 + extend/lssl/lssl.mak | 1 + extend/lstdfs/lstdfs.mak | 1 + extend/ltimer/ltimer.mak | 1 + extend/lua/lua.mak | 1 + extend/lua/luac.mak | 1 + extend/lua/lualib.mak | 1 + extend/lualog/lualog.mak | 1 + extend/luapb/luapb.mak | 1 + extend/luaxlsx/luaxlsx.mak | 1 + extend/luaxml/luaxml.mak | 1 + extend/lunqlite/lunqlite.mak | 1 + extend/lworker/lworker.mak | 1 + extend/mimalloc/mimalloc.mak | 1 + 25 files changed, 25 insertions(+), 1 deletion(-) diff --git a/core/luabus/luabus.mak b/core/luabus/luabus.mak index cd59a523..8d442f23 100644 --- a/core/luabus/luabus.mak +++ b/core/luabus/luabus.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/core/quanta/quanta.mak b/core/quanta/quanta.mak index 5215a4fe..7b9daab1 100644 --- a/core/quanta/quanta.mak +++ b/core/quanta/quanta.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/laoi/laoi.mak b/extend/laoi/laoi.mak index bccf1057..52503c47 100644 --- a/extend/laoi/laoi.mak +++ b/extend/laoi/laoi.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lbson/lbson.mak b/extend/lbson/lbson.mak index ceea02d9..fcd5c87b 100644 --- a/extend/lbson/lbson.mak +++ b/extend/lbson/lbson.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lcodec/lcodec.mak b/extend/lcodec/lcodec.mak index 9295447d..502a2627 100644 --- a/extend/lcodec/lcodec.mak +++ b/extend/lcodec/lcodec.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lcodec/src/mysql.h b/extend/lcodec/src/mysql.h index a705b4b4..db3762d7 100644 --- a/extend/lcodec/src/mysql.h +++ b/extend/lcodec/src/mysql.h @@ -255,7 +255,7 @@ namespace lcodec { size_t column_count = decode_length_encoded_number(); // field metadata mysql_columns columns; - for (int i = 0; i < column_count; ++i) { + for (size_t i = 0; i < column_count; ++i) { recv_packet(); field_decode(columns); } diff --git a/extend/ldetour/ldetour.mak b/extend/ldetour/ldetour.mak index c017d216..2ac2b230 100644 --- a/extend/ldetour/ldetour.mak +++ b/extend/ldetour/ldetour.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/ljson/ljson.mak b/extend/ljson/ljson.mak index 8ea3de50..5be82672 100644 --- a/extend/ljson/ljson.mak +++ b/extend/ljson/ljson.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lmake/share.lua b/extend/lmake/share.lua index d4cf2987..9d64ca03 100644 --- a/extend/lmake/share.lua +++ b/extend/lmake/share.lua @@ -12,6 +12,7 @@ ENABLE = true --需要的FLAGS BASE_FLAGS = { + "Wno-sign-compare", "Wno-unused-variable", "Wno-unused-parameter", "Wno-unused-but-set-variable", diff --git a/extend/lmdb/lmdb.mak b/extend/lmdb/lmdb.mak index 48ee75d5..c24f6e76 100644 --- a/extend/lmdb/lmdb.mak +++ b/extend/lmdb/lmdb.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lminiz/lminiz.mak b/extend/lminiz/lminiz.mak index 786f4c05..d2f90d42 100644 --- a/extend/lminiz/lminiz.mak +++ b/extend/lminiz/lminiz.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lsqlite/lsqlite.mak b/extend/lsqlite/lsqlite.mak index 386272f5..09a94397 100644 --- a/extend/lsqlite/lsqlite.mak +++ b/extend/lsqlite/lsqlite.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lssl/lssl.mak b/extend/lssl/lssl.mak index e9f26c5d..4ddf360f 100644 --- a/extend/lssl/lssl.mak +++ b/extend/lssl/lssl.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lstdfs/lstdfs.mak b/extend/lstdfs/lstdfs.mak index 057bcf6d..377c2728 100644 --- a/extend/lstdfs/lstdfs.mak +++ b/extend/lstdfs/lstdfs.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/ltimer/ltimer.mak b/extend/ltimer/ltimer.mak index 99ec049e..5595287c 100644 --- a/extend/ltimer/ltimer.mak +++ b/extend/ltimer/ltimer.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lua/lua.mak b/extend/lua/lua.mak index be4c6267..0d436790 100644 --- a/extend/lua/lua.mak +++ b/extend/lua/lua.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lua/luac.mak b/extend/lua/luac.mak index 94f65ae9..45bcb6e6 100644 --- a/extend/lua/luac.mak +++ b/extend/lua/luac.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lua/lualib.mak b/extend/lua/lualib.mak index d7a79273..a9c7606f 100644 --- a/extend/lua/lualib.mak +++ b/extend/lua/lualib.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lualog/lualog.mak b/extend/lualog/lualog.mak index b4517abf..fe71712b 100644 --- a/extend/lualog/lualog.mak +++ b/extend/lualog/lualog.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/luapb/luapb.mak b/extend/luapb/luapb.mak index 8b80c699..34cdef32 100644 --- a/extend/luapb/luapb.mak +++ b/extend/luapb/luapb.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/luaxlsx/luaxlsx.mak b/extend/luaxlsx/luaxlsx.mak index df83cdad..38972a38 100644 --- a/extend/luaxlsx/luaxlsx.mak +++ b/extend/luaxlsx/luaxlsx.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/luaxml/luaxml.mak b/extend/luaxml/luaxml.mak index eab71512..250a099b 100644 --- a/extend/luaxml/luaxml.mak +++ b/extend/luaxml/luaxml.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lunqlite/lunqlite.mak b/extend/lunqlite/lunqlite.mak index b9ede9b8..af49d075 100644 --- a/extend/lunqlite/lunqlite.mak +++ b/extend/lunqlite/lunqlite.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/lworker/lworker.mak b/extend/lworker/lworker.mak index 283007a2..1e832a86 100644 --- a/extend/lworker/lworker.mak +++ b/extend/lworker/lworker.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable diff --git a/extend/mimalloc/mimalloc.mak b/extend/mimalloc/mimalloc.mak index 949d6daf..b3b09dd0 100644 --- a/extend/mimalloc/mimalloc.mak +++ b/extend/mimalloc/mimalloc.mak @@ -15,6 +15,7 @@ all : pre_build target post_build MYCFLAGS = #需要定义的FLAG +MYCFLAGS += -Wno-sign-compare MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter MYCFLAGS += -Wno-unused-but-set-variable