Removal of no-unused-but-set-variable warning supression

Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
This commit is contained in:
Ibrahim Zidan 2026-06-30 15:12:44 +03:00
parent 4e1f1719fe
commit d64f82baec
No known key found for this signature in database
GPG key ID: 0F0A43C7FE4C7B9A
3 changed files with 2 additions and 4 deletions

View file

@ -50,7 +50,7 @@ add_library(hercules-libconfig STATIC
)
if(NOT MSVC)
target_compile_options(hercules-libconfig PRIVATE -Wno-null-dereference -Wno-deprecated-non-prototype)
target_compile_options(hercules-libconfig PRIVATE -Wno-null-dereference -Wno-deprecated-non-prototype -Wno-unused-but-set-variable)
else()
target_compile_options(hercules-libconfig PRIVATE /wd4245)
endif()

View file

@ -223,7 +223,6 @@ else()
#testadd_warning_compiler_flag(no-format-nonliteral)
testadd_warning_compiler_flag(no-switch)
# testadd_warning_compiler_flag(no-suggest-attribute=format)
testadd_warning_compiler_flag(no-unused-but-set-variable)
testadd_warning_compiler_flag(no-enum-enum-conversion)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")

View file

@ -6821,7 +6821,7 @@ static enum damage_lv battle_weapon_attack(struct block_list *src, struct block_
{
GUARD_MAP_LOCK
struct map_session_data *sd = NULL, *tsd = NULL;
struct map_session_data *sd = NULL;
struct status_data *sstatus, *tstatus;
struct status_change *sc, *tsc;
int64 damage;
@ -6835,7 +6835,6 @@ static enum damage_lv battle_weapon_attack(struct block_list *src, struct block_
return ATK_NONE;
sd = BL_CAST(BL_PC, src);
tsd = BL_CAST(BL_PC, target);
sstatus = status->get_status_data(src);
tstatus = status->get_status_data(target);