fix(CI): re-enable -Werror compile flag (#256)

This commit is contained in:
sudlud
2025-02-08 11:37:37 +01:00
committed by GitHub
parent 7511f38eab
commit f3c59a02b8
3 changed files with 5 additions and 3 deletions

View File

@@ -58,6 +58,8 @@ jobs:
-DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \ -DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \ -DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_C_FLAGS="-Werror" \
-DCMAKE_CXX_FLAGS="-Werror" \
-DLUA_VERSION=${{ inputs.lua_version }} -DLUA_VERSION=${{ inputs.lua_version }}
make -j$(nproc) make -j$(nproc)
cd .. cd ..

View File

@@ -204,7 +204,7 @@ static void mar_encode_value(lua_State *L, mar_Buffer *buf, int val, size_t *idx
} }
else { else {
mar_Buffer rec_buf; mar_Buffer rec_buf;
unsigned int i; unsigned char i;
lua_Debug ar; lua_Debug ar;
lua_pop(L, 1); /* pop nil */ lua_pop(L, 1); /* pop nil */

View File

@@ -358,13 +358,13 @@ namespace LuaMap
*/ */
int GetCreaturesByAreaId(lua_State* L, Map* map) int GetCreaturesByAreaId(lua_State* L, Map* map)
{ {
uint32 areaId = Eluna::CHECKVAL<uint32>(L, 2, -1); int32 areaId = Eluna::CHECKVAL<int32>(L, 2, -1);
std::vector<Creature*> filteredCreatures; std::vector<Creature*> filteredCreatures;
for (const auto& pair : map->GetCreatureBySpawnIdStore()) for (const auto& pair : map->GetCreatureBySpawnIdStore())
{ {
Creature* creature = pair.second; Creature* creature = pair.second;
if (areaId == -1 || creature->GetAreaId() == areaId) if (areaId == -1 || creature->GetAreaId() == (uint32)areaId)
{ {
filteredCreatures.push_back(creature); filteredCreatures.push_back(creature);
} }