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 e30cd58 commit 0ca531a
Show file tree
Hide file tree
Showing 28 changed files with 53 additions and 5 deletions.
2 changes: 2 additions & 0 deletions core/luabus/luabus.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions core/quanta/quanta.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/laoi/laoi.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/lbson/lbson.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 1 addition & 1 deletion extend/lbson/src/bson.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ namespace lbson {
if (depth > max_bson_depth) {
luaL_error(L, "Too depth while encoding bson");
}
size_t raw_len = lua_rawlen(L, -1);
int raw_len = lua_rawlen(L, -1);
bson_type type = check_doctype(L, raw_len);
write_key(type, key, len);
if (type == bson_type::BSON_DOCUMENT) {
Expand Down
2 changes: 2 additions & 0 deletions extend/lcodec/lcodec.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/ldetour/ldetour.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/ljson/ljson.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/lmake/share.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ENABLE = true

--需要的FLAGS
BASE_FLAGS = {
"Wno-unused-variable",
"Wno-unused-parameter",
}

--FLAGS
Expand Down
2 changes: 2 additions & 0 deletions extend/lmdb/lmdb.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/lminiz/lminiz.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/lsqlite/lsqlite.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/lssl/lssl.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/lstdfs/lstdfs.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/ltimer/ltimer.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/lua/lua.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/lua/luac.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/lua/lualib.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
4 changes: 2 additions & 2 deletions extend/luakit/include/lua_codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace luakit {
index = lua_absindex(L, index);
value_encode(buff, type_tab_head);
if (is_lua_array(L, index)) {
size_t rawlen = lua_rawlen(L, index);
int rawlen = lua_rawlen(L, index);
for (int i = 1; i <= rawlen; ++i) {
lua_rawgeti(L, index, i);
integer_encode(buff, i);
Expand Down Expand Up @@ -281,7 +281,7 @@ namespace luakit {
index = lua_absindex(L, index);
serialize_value(buff, "{");
if (is_lua_array(L, index)) {
size_t rawlen = lua_rawlen(L, index);
int rawlen = lua_rawlen(L, index);
for (int i = 1; i <= rawlen; ++i){
if (size++ > 0) {
serialize_value(buff, ",");
Expand Down
2 changes: 1 addition & 1 deletion extend/luakit/include/lua_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace luakit {

protected:
lua_State* m_L = nullptr;
uint32_t m_index = LUA_NOREF;
int32_t m_index = LUA_NOREF;
};

template <>
Expand Down
2 changes: 2 additions & 0 deletions extend/lualog/lualog.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/luapb/luapb.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/luaxlsx/luaxlsx.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough

#c标准库版本
Expand Down
2 changes: 2 additions & 0 deletions extend/luaxml/luaxml.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 1 addition & 1 deletion extend/luaxml/src/luaxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace luaxml {
return;
}
lua_pushstring(L, key);
size_t raw_len = lua_rawlen(L, -2);
int raw_len = lua_rawlen(L, -2);
for (int i = 1; i <= raw_len; ++i) {
lua_rawgeti(L, -2, i);
load_elem4lua(L, printer);
Expand Down
2 changes: 2 additions & 0 deletions extend/lunqlite/lunqlite.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter
MYCFLAGS += -Wno-implicit-fallthrough
MYCFLAGS += -Wmisleading-indentation

Expand Down
2 changes: 2 additions & 0 deletions extend/lworker/lworker.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

#c标准库版本
#gnu99/gnu11/gnu17
Expand Down
2 changes: 2 additions & 0 deletions extend/mimalloc/mimalloc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ all : pre_build target post_build
MYCFLAGS =

#需要定义的FLAG
MYCFLAGS += -Wno-unused-variable
MYCFLAGS += -Wno-unused-parameter

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

0 comments on commit 0ca531a

Please sign in to comment.