Mercurial > molko
changeset 413:222045c513ec
misc: fix some warnings
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 07 Oct 2022 15:25:32 +0200 |
parents | a1d7f422759b |
children | 6947c1fefe5c |
files | GNUmakefile src/libmlk-core/core/music.c src/libmlk-rpg/rpg/battle-bar-default.c src/libmlk-rpg/rpg/battle-state-attacking.c |
diffstat | 4 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Fri Oct 07 15:22:17 2022 +0200 +++ b/GNUmakefile Fri Oct 07 15:25:32 2022 +0200 @@ -67,7 +67,7 @@ INCS += $(ZIP_INCS) endif -OPTS := -Wall -Wextra -pipe +OPTS := -Wall -Wextra -Wno-format-truncation -pipe ifeq ($(OS),Darwin) OPTS += -Wno-deprecated-declarations
--- a/src/libmlk-core/core/music.c Fri Oct 07 15:22:17 2022 +0200 +++ b/src/libmlk-core/core/music.c Fri Oct 07 15:25:32 2022 +0200 @@ -57,6 +57,10 @@ assert(mus); assert(vfs_file_ok(file)); + // TODO: implement this. + (void)mus; + (void)file; + return 0; }
--- a/src/libmlk-rpg/rpg/battle-bar-default.c Fri Oct 07 15:22:17 2022 +0200 +++ b/src/libmlk-rpg/rpg/battle-bar-default.c Fri Oct 07 15:25:32 2022 +0200 @@ -554,6 +554,8 @@ assert(bt); assert(ch); + (void)bt; + bar->items = alloc_rearray0(bar->items, bar->itemsz, CHARACTER_SPELL_MAX, sizeof (*bar->items)); bar->itemsz = CHARACTER_SPELL_MAX; @@ -574,6 +576,8 @@ assert(bt); /* TODO: not implemented yet. */ + (void)bar; + (void)bt; #if 0 for (size_t i = 0; i < INVENTORY_ITEM_MAX; ++i) { if (bt->inventory->items[i].item) {