Skip to content

Commit

Permalink
修复编译警告
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed May 8, 2024
1 parent 0ca531a commit 620d970
Show file tree
Hide file tree
Showing 31 changed files with 25 additions and 40 deletions.
1 change: 1 addition & 0 deletions core/luabus/luabus.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions core/quanta/quanta.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/laoi/laoi.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lbson/lbson.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lcodec/lcodec.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/ldetour/ldetour.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
4 changes: 0 additions & 4 deletions extend/ljson/ljson.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ TARGET_NAME = "ljson"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough"
}

--需要的include目录
INCLUDES = {
"../lua/lua",
Expand Down
2 changes: 1 addition & 1 deletion extend/ljson/ljson.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lmake/share.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENABLE = true
BASE_FLAGS = {
"Wno-unused-variable",
"Wno-unused-parameter",
"Wunused-but-set-parameter"
}

--FLAGS
Expand Down
4 changes: 0 additions & 4 deletions extend/lmdb/lmdb.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ TARGET_NAME = "lmdb"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough"
}

--需要的include目录
INCLUDES = {
"../lua/lua",
Expand Down
2 changes: 1 addition & 1 deletion extend/lmdb/lmdb.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
7 changes: 0 additions & 7 deletions extend/lminiz/lminiz.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ TARGET_NAME = "lminiz"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

--目标文件前缀
LIB_PREFIX = 1

FLAGS = {
"Wno-implicit-fallthrough"
}

--需要的include目录
INCLUDES = {
"../../extend/lua/lua",
Expand Down
4 changes: 2 additions & 2 deletions extend/lminiz/lminiz.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down Expand Up @@ -74,7 +74,7 @@ endif
INT_DIR = $(SOLUTION_DIR)temp/$(PROJECT_NAME)

#目标文件前缀,定义则.so和.a加lib前缀,否则不加
PROJECT_PREFIX = lib
PROJECT_PREFIX =

#目标定义
MYCFLAGS += -fPIC
Expand Down
4 changes: 0 additions & 4 deletions extend/lsqlite/lsqlite.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ TARGET_NAME = "lsqlite"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough"
}

--LINUX需要定义的选项
LINUX_DEFINES = {
"SQLITE_OS_UNIX"
Expand Down
2 changes: 1 addition & 1 deletion extend/lsqlite/lsqlite.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
8 changes: 0 additions & 8 deletions extend/lssl/lssl.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,13 @@ TARGET_NAME = "lssl"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough"
}

--需要的include目录
INCLUDES = {
"./src",
"../lua/lua",
"../luakit/include"
}

--LINUX需要定义的选项
LINUX_DEFINES = {
}

--DARWIN需要定义的选项
DARWIN_DEFINES = {
"WOLFSSL_APPLE_NATIVE_CERT_VALIDATION"
Expand Down
2 changes: 1 addition & 1 deletion extend/lssl/lssl.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lstdfs/lstdfs.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/ltimer/ltimer.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lua/lua.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lua/luac.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lua/lualib.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/lualog/lualog.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/luapb/luapb.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
4 changes: 0 additions & 4 deletions extend/luaxlsx/luaxlsx.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ TARGET_NAME = "luaxlsx"
----工程类型: static/dynamic/exe
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough"
}

--需要的include目录
INCLUDES = {
"../lua/lua",
Expand Down
2 changes: 1 addition & 1 deletion extend/luaxlsx/luaxlsx.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/luaxml/luaxml.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 0 additions & 1 deletion extend/lunqlite/lunqlite.lmak
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ TARGET_NAME = "lunqlite"
PROJECT_TYPE = "dynamic"

FLAGS = {
"Wno-implicit-fallthrough",
"Wmisleading-indentation"
}

Expand Down
2 changes: 1 addition & 1 deletion extend/lunqlite/lunqlite.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wunused-but-set-parameter
MYCFLAGS += -Wmisleading-indentation

#c标准库版本
Expand Down
1 change: 1 addition & 0 deletions extend/lworker/lworker.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
1 change: 1 addition & 0 deletions extend/mimalloc/mimalloc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MYCFLAGS =
#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wunused-but-set-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down

0 comments on commit 620d970

Please sign in to comment.