fix(CI): re-enable -Werror compile flag (#256)
This commit is contained in:
2
.github/workflows/core-build-base.yml
vendored
2
.github/workflows/core-build-base.yml
vendored
@@ -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 ..
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user