diff libmlk-rpg/rpg/selection.c @ 316:1a6125ffebff

misc: fix many warnings and build on macOS
author David Demelier <markand@malikania.fr>
date Wed, 22 Sep 2021 12:57:55 +0200
parents d01e83210ca2
children
line wrap: on
line diff
--- a/libmlk-rpg/rpg/selection.c	Wed Sep 22 10:04:15 2021 +0200
+++ b/libmlk-rpg/rpg/selection.c	Wed Sep 22 12:57:55 2021 +0200
@@ -27,6 +27,8 @@
 static void
 random(struct selection *slt, const struct battle *bt, const struct battle_entity *entities, size_t entitiesz)
 {
+	(void)bt;
+
 	struct {
 		const struct battle_entity *entity;
 		size_t position;
@@ -51,6 +53,8 @@
 static void
 first(struct selection *slt, const struct battle *bt, const struct battle_entity *entities, size_t entitiesz)
 {
+	(void)bt;
+
 	for (size_t i = 0; i < entitiesz; ++i) {
 		if (battle_entity_ok(&entities[i])) {
 			slt->index_character = i;