mirror of
https://github.com/HerculesWS/Hercules
synced 2026-08-15 12:23:13 -04:00
Removal of no-unused-but-set-variable warning supression
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
This commit is contained in:
parent
4e1f1719fe
commit
d64f82baec
3 changed files with 2 additions and 4 deletions
2
3rdparty/libconfig/CMakeLists.txt
vendored
2
3rdparty/libconfig/CMakeLists.txt
vendored
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue