diff --git a/core/luabus/luabus.mak b/core/luabus/luabus.mak index 338a61c6..3a92eba2 100644 --- a/core/luabus/luabus.mak +++ b/core/luabus/luabus.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/core/quanta/quanta.mak b/core/quanta/quanta.mak index b6e780e6..f9008b9d 100644 --- a/core/quanta/quanta.mak +++ b/core/quanta/quanta.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/laoi/laoi.mak b/extend/laoi/laoi.mak index 6cbabb68..930d51e4 100644 --- a/extend/laoi/laoi.mak +++ b/extend/laoi/laoi.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lbson/lbson.mak b/extend/lbson/lbson.mak index 8ba1accc..9f532849 100644 --- a/extend/lbson/lbson.mak +++ b/extend/lbson/lbson.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lcodec/lcodec.mak b/extend/lcodec/lcodec.mak index a39ccb28..06da0590 100644 --- a/extend/lcodec/lcodec.mak +++ b/extend/lcodec/lcodec.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/ldetour/ldetour.mak b/extend/ldetour/ldetour.mak index 1d587065..376d24a1 100644 --- a/extend/ldetour/ldetour.mak +++ b/extend/ldetour/ldetour.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/ljson/ljson.lmak b/extend/ljson/ljson.lmak index ace92963..4151186b 100644 --- a/extend/ljson/ljson.lmak +++ b/extend/ljson/ljson.lmak @@ -7,10 +7,6 @@ TARGET_NAME = "ljson" ----工程类型: static/dynamic/exe PROJECT_TYPE = "dynamic" -FLAGS = { - "Wno-implicit-fallthrough" -} - --需要的include目录 INCLUDES = { "../lua/lua", diff --git a/extend/ljson/ljson.mak b/extend/ljson/ljson.mak index fa402a12..212823bd 100644 --- a/extend/ljson/ljson.mak +++ b/extend/ljson/ljson.mak @@ -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 diff --git a/extend/lmake/share.lua b/extend/lmake/share.lua index a8f80bd1..53f852d2 100644 --- a/extend/lmake/share.lua +++ b/extend/lmake/share.lua @@ -14,6 +14,7 @@ ENABLE = true BASE_FLAGS = { "Wno-unused-variable", "Wno-unused-parameter", + "Wunused-but-set-parameter" } --FLAGS diff --git a/extend/lmdb/lmdb.lmak b/extend/lmdb/lmdb.lmak index 17ceab51..96078b31 100644 --- a/extend/lmdb/lmdb.lmak +++ b/extend/lmdb/lmdb.lmak @@ -7,10 +7,6 @@ TARGET_NAME = "lmdb" ----工程类型: static/dynamic/exe PROJECT_TYPE = "dynamic" -FLAGS = { - "Wno-implicit-fallthrough" -} - --需要的include目录 INCLUDES = { "../lua/lua", diff --git a/extend/lmdb/lmdb.mak b/extend/lmdb/lmdb.mak index 85996d99..5a2417fa 100644 --- a/extend/lmdb/lmdb.mak +++ b/extend/lmdb/lmdb.mak @@ -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 diff --git a/extend/lminiz/lminiz.lmak b/extend/lminiz/lminiz.lmak index 8787cf36..486b4d1a 100644 --- a/extend/lminiz/lminiz.lmak +++ b/extend/lminiz/lminiz.lmak @@ -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", diff --git a/extend/lminiz/lminiz.mak b/extend/lminiz/lminiz.mak index 2ea00661..76cb9180 100644 --- a/extend/lminiz/lminiz.mak +++ b/extend/lminiz/lminiz.mak @@ -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 @@ -74,7 +74,7 @@ endif INT_DIR = $(SOLUTION_DIR)temp/$(PROJECT_NAME) #目标文件前缀,定义则.so和.a加lib前缀,否则不加 -PROJECT_PREFIX = lib +PROJECT_PREFIX = #目标定义 MYCFLAGS += -fPIC diff --git a/extend/lsqlite/lsqlite.lmak b/extend/lsqlite/lsqlite.lmak index e191f8d0..b33e58db 100644 --- a/extend/lsqlite/lsqlite.lmak +++ b/extend/lsqlite/lsqlite.lmak @@ -7,10 +7,6 @@ TARGET_NAME = "lsqlite" ----工程类型: static/dynamic/exe PROJECT_TYPE = "dynamic" -FLAGS = { - "Wno-implicit-fallthrough" -} - --LINUX需要定义的选项 LINUX_DEFINES = { "SQLITE_OS_UNIX" diff --git a/extend/lsqlite/lsqlite.mak b/extend/lsqlite/lsqlite.mak index 8fa203f2..d752360a 100644 --- a/extend/lsqlite/lsqlite.mak +++ b/extend/lsqlite/lsqlite.mak @@ -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 diff --git a/extend/lssl/lssl.lmak b/extend/lssl/lssl.lmak index 3095d2f4..4ec69a5f 100644 --- a/extend/lssl/lssl.lmak +++ b/extend/lssl/lssl.lmak @@ -7,10 +7,6 @@ TARGET_NAME = "lssl" ----工程类型: static/dynamic/exe PROJECT_TYPE = "dynamic" -FLAGS = { - "Wno-implicit-fallthrough" -} - --需要的include目录 INCLUDES = { "./src", @@ -18,10 +14,6 @@ INCLUDES = { "../luakit/include" } ---LINUX需要定义的选项 -LINUX_DEFINES = { -} - --DARWIN需要定义的选项 DARWIN_DEFINES = { "WOLFSSL_APPLE_NATIVE_CERT_VALIDATION" diff --git a/extend/lssl/lssl.mak b/extend/lssl/lssl.mak index 0a6fed5c..159f84fc 100644 --- a/extend/lssl/lssl.mak +++ b/extend/lssl/lssl.mak @@ -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 diff --git a/extend/lstdfs/lstdfs.mak b/extend/lstdfs/lstdfs.mak index ca489e54..95231733 100644 --- a/extend/lstdfs/lstdfs.mak +++ b/extend/lstdfs/lstdfs.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/ltimer/ltimer.mak b/extend/ltimer/ltimer.mak index a5884fc6..24f3a1b6 100644 --- a/extend/ltimer/ltimer.mak +++ b/extend/ltimer/ltimer.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lua/lua.mak b/extend/lua/lua.mak index 463ef88c..6c426ec9 100644 --- a/extend/lua/lua.mak +++ b/extend/lua/lua.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lua/luac.mak b/extend/lua/luac.mak index 898db201..0b1677d3 100644 --- a/extend/lua/luac.mak +++ b/extend/lua/luac.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lua/lualib.mak b/extend/lua/lualib.mak index dc27e339..e03bd261 100644 --- a/extend/lua/lualib.mak +++ b/extend/lua/lualib.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lualog/lualog.mak b/extend/lualog/lualog.mak index fd1ed98e..6a11f1c2 100644 --- a/extend/lualog/lualog.mak +++ b/extend/lualog/lualog.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/luapb/luapb.mak b/extend/luapb/luapb.mak index 87605367..4717ccc3 100644 --- a/extend/luapb/luapb.mak +++ b/extend/luapb/luapb.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/luaxlsx/luaxlsx.lmak b/extend/luaxlsx/luaxlsx.lmak index 51b5d05d..bbe222f4 100644 --- a/extend/luaxlsx/luaxlsx.lmak +++ b/extend/luaxlsx/luaxlsx.lmak @@ -7,10 +7,6 @@ TARGET_NAME = "luaxlsx" ----工程类型: static/dynamic/exe PROJECT_TYPE = "dynamic" -FLAGS = { - "Wno-implicit-fallthrough" -} - --需要的include目录 INCLUDES = { "../lua/lua", diff --git a/extend/luaxlsx/luaxlsx.mak b/extend/luaxlsx/luaxlsx.mak index e8774f08..b78cf7c3 100644 --- a/extend/luaxlsx/luaxlsx.mak +++ b/extend/luaxlsx/luaxlsx.mak @@ -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 diff --git a/extend/luaxml/luaxml.mak b/extend/luaxml/luaxml.mak index b1300607..35106d7a 100644 --- a/extend/luaxml/luaxml.mak +++ b/extend/luaxml/luaxml.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/lunqlite/lunqlite.lmak b/extend/lunqlite/lunqlite.lmak index 4bfac8af..301baecb 100644 --- a/extend/lunqlite/lunqlite.lmak +++ b/extend/lunqlite/lunqlite.lmak @@ -8,7 +8,6 @@ TARGET_NAME = "lunqlite" PROJECT_TYPE = "dynamic" FLAGS = { - "Wno-implicit-fallthrough", "Wmisleading-indentation" } diff --git a/extend/lunqlite/lunqlite.mak b/extend/lunqlite/lunqlite.mak index 9713f61f..e92e7898 100644 --- a/extend/lunqlite/lunqlite.mak +++ b/extend/lunqlite/lunqlite.mak @@ -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标准库版本 diff --git a/extend/lworker/lworker.mak b/extend/lworker/lworker.mak index 81cc584d..43949538 100644 --- a/extend/lworker/lworker.mak +++ b/extend/lworker/lworker.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17 diff --git a/extend/mimalloc/mimalloc.mak b/extend/mimalloc/mimalloc.mak index cb0d8d29..00478932 100644 --- a/extend/mimalloc/mimalloc.mak +++ b/extend/mimalloc/mimalloc.mak @@ -17,6 +17,7 @@ MYCFLAGS = #需要定义的FLAG MYCFLAGS += -Wno-unused-variable MYCFLAGS += -Wno-unused-parameter +MYCFLAGS += -Wunused-but-set-parameter #c标准库版本 #gnu99/gnu11/gnu17